diff --git a/CHANGELOG.md b/CHANGELOG.md
index bf0a0697..a6b62668 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+### v2.5.0 от 01.08.2022
+* Добавлены новые поля для ФФД 1.2
+
### v2.4.2 от 22.04.2022
* Поправки в файле composer.json
diff --git a/composer.json b/composer.json
index b2f86657..795a7037 100644
--- a/composer.json
+++ b/composer.json
@@ -13,9 +13,9 @@
],
"dist": {
"type": "zip",
- "url": "https://git.yoomoney.ru/rest/api/latest/projects/SDK/repos/yookassa-sdk-php/archive?at=refs%2Ftags%2F2.4.2&format=zip"
+ "url": "https://git.yoomoney.ru/rest/api/latest/projects/SDK/repos/yookassa-sdk-php/archive?at=refs%2Ftags%2F2.5.0&format=zip"
},
- "version": "2.4.2",
+ "version": "2.5.0",
"require": {
"php": ">=5.3.0",
"ext-curl": "*",
diff --git a/docs/classes/JsonSerializable.md b/docs/classes/JsonSerializable.md
index fb49d0fe..98d8b6d3 100644
--- a/docs/classes/JsonSerializable.md
+++ b/docs/classes/JsonSerializable.md
@@ -50,6 +50,6 @@ public jsonSerialize() : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Client-ApiClientInterface.md b/docs/classes/YooKassa-Client-ApiClientInterface.md
index de7f918b..bc031452 100644
--- a/docs/classes/YooKassa-Client-ApiClientInterface.md
+++ b/docs/classes/YooKassa-Client-ApiClientInterface.md
@@ -200,6 +200,6 @@ public setConfig(array $config) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Client-BaseClient.md b/docs/classes/YooKassa-Client-BaseClient.md
index 605c6f19..8377d8d7 100644
--- a/docs/classes/YooKassa-Client-BaseClient.md
+++ b/docs/classes/YooKassa-Client-BaseClient.md
@@ -667,6 +667,6 @@ protected handleError(\YooKassa\Common\ResponseObject $response) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Client-CurlClient.md b/docs/classes/YooKassa-Client-CurlClient.md
index 56ddaa34..d0811b84 100644
--- a/docs/classes/YooKassa-Client-CurlClient.md
+++ b/docs/classes/YooKassa-Client-CurlClient.md
@@ -495,6 +495,6 @@ public setTimeout(int $timeout) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Client-UserAgent.md b/docs/classes/YooKassa-Client-UserAgent.md
index 35829884..aba2325b 100644
--- a/docs/classes/YooKassa-Client-UserAgent.md
+++ b/docs/classes/YooKassa-Client-UserAgent.md
@@ -316,6 +316,6 @@ public setModule(string $name, string $version) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Client.md b/docs/classes/YooKassa-Client.md
index 30d7d759..713e8475 100644
--- a/docs/classes/YooKassa-Client.md
+++ b/docs/classes/YooKassa-Client.md
@@ -235,7 +235,7 @@ DEFAULT_ATTEMPTS_COUNT = 3
Текущая версия библиотеки
```php
-SDK_VERSION = '2.4.2'
+SDK_VERSION = '2.5.0'
```
@@ -2169,6 +2169,6 @@ protected handleError(\YooKassa\Common\ResponseObject $response) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractEnum.md b/docs/classes/YooKassa-Common-AbstractEnum.md
index e6a61569..beb9d5df 100644
--- a/docs/classes/YooKassa-Common-AbstractEnum.md
+++ b/docs/classes/YooKassa-Common-AbstractEnum.md
@@ -118,6 +118,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractObject.md b/docs/classes/YooKassa-Common-AbstractObject.md
index d54746ab..cb1f77d9 100644
--- a/docs/classes/YooKassa-Common-AbstractObject.md
+++ b/docs/classes/YooKassa-Common-AbstractObject.md
@@ -332,6 +332,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractPaymentRequest.md b/docs/classes/YooKassa-Common-AbstractPaymentRequest.md
index fef42de3..0dd4061b 100644
--- a/docs/classes/YooKassa-Common-AbstractPaymentRequest.md
+++ b/docs/classes/YooKassa-Common-AbstractPaymentRequest.md
@@ -666,6 +666,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractPaymentRequestBuilder.md b/docs/classes/YooKassa-Common-AbstractPaymentRequestBuilder.md
index ad1a2fce..bd92447b 100644
--- a/docs/classes/YooKassa-Common-AbstractPaymentRequestBuilder.md
+++ b/docs/classes/YooKassa-Common-AbstractPaymentRequestBuilder.md
@@ -462,6 +462,6 @@ protected initCurrentObject() : self
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractRefundRequest.md b/docs/classes/YooKassa-Common-AbstractRefundRequest.md
index a36da10e..41d6b62e 100644
--- a/docs/classes/YooKassa-Common-AbstractRefundRequest.md
+++ b/docs/classes/YooKassa-Common-AbstractRefundRequest.md
@@ -637,6 +637,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractRequest.md b/docs/classes/YooKassa-Common-AbstractRequest.md
index 5201ad2c..ef9bacae 100644
--- a/docs/classes/YooKassa-Common-AbstractRequest.md
+++ b/docs/classes/YooKassa-Common-AbstractRequest.md
@@ -407,6 +407,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-AbstractRequestBuilder.md b/docs/classes/YooKassa-Common-AbstractRequestBuilder.md
index 26bb745a..ab42afa3 100644
--- a/docs/classes/YooKassa-Common-AbstractRequestBuilder.md
+++ b/docs/classes/YooKassa-Common-AbstractRequestBuilder.md
@@ -157,6 +157,6 @@ Abstract protected initCurrentObject() : \YooKassa\Common\AbstractRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-ApiConnectionException.md b/docs/classes/YooKassa-Common-Exceptions-ApiConnectionException.md
index e1eaf7c1..531b9721 100644
--- a/docs/classes/YooKassa-Common-Exceptions-ApiConnectionException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-ApiConnectionException.md
@@ -126,6 +126,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-ApiException.md b/docs/classes/YooKassa-Common-Exceptions-ApiException.md
index 0e8ce4a4..3dc1fe9b 100644
--- a/docs/classes/YooKassa-Common-Exceptions-ApiException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-ApiException.md
@@ -123,6 +123,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-AuthorizeException.md b/docs/classes/YooKassa-Common-Exceptions-AuthorizeException.md
index 45297514..5c0d8de9 100644
--- a/docs/classes/YooKassa-Common-Exceptions-AuthorizeException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-AuthorizeException.md
@@ -126,6 +126,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-BadApiRequestException.md b/docs/classes/YooKassa-Common-Exceptions-BadApiRequestException.md
index f0d1f602..72e48617 100644
--- a/docs/classes/YooKassa-Common-Exceptions-BadApiRequestException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-BadApiRequestException.md
@@ -152,6 +152,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-EmptyPropertyValueException.md b/docs/classes/YooKassa-Common-Exceptions-EmptyPropertyValueException.md
index f65598c0..76c68d7a 100644
--- a/docs/classes/YooKassa-Common-Exceptions-EmptyPropertyValueException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-EmptyPropertyValueException.md
@@ -79,6 +79,6 @@ public getProperty() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-ExtensionNotFoundException.md b/docs/classes/YooKassa-Common-Exceptions-ExtensionNotFoundException.md
index 915eb687..7beee0ed 100644
--- a/docs/classes/YooKassa-Common-Exceptions-ExtensionNotFoundException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-ExtensionNotFoundException.md
@@ -67,6 +67,6 @@ Constructor
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-ForbiddenException.md b/docs/classes/YooKassa-Common-Exceptions-ForbiddenException.md
index e6529d1b..f10ab97f 100644
--- a/docs/classes/YooKassa-Common-Exceptions-ForbiddenException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-ForbiddenException.md
@@ -152,6 +152,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-InternalServerError.md b/docs/classes/YooKassa-Common-Exceptions-InternalServerError.md
index 76b0b6a9..583e293c 100644
--- a/docs/classes/YooKassa-Common-Exceptions-InternalServerError.md
+++ b/docs/classes/YooKassa-Common-Exceptions-InternalServerError.md
@@ -155,6 +155,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyException.md b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyException.md
index f4e1e20b..cc951681 100644
--- a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyException.md
@@ -78,6 +78,6 @@ public getProperty() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueException.md b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueException.md
index ae0ed308..dc840287 100644
--- a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueException.md
@@ -94,6 +94,6 @@ public getValue() : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueTypeException.md b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueTypeException.md
index 0e46ded4..a0fce423 100644
--- a/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueTypeException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-InvalidPropertyValueTypeException.md
@@ -94,6 +94,6 @@ public getType() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-InvalidRequestException.md b/docs/classes/YooKassa-Common-Exceptions-InvalidRequestException.md
index c561ee93..3797fbe6 100644
--- a/docs/classes/YooKassa-Common-Exceptions-InvalidRequestException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-InvalidRequestException.md
@@ -78,6 +78,6 @@ public getRequestObject() : \YooKassa\Common\AbstractRequest|null
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-JsonException.md b/docs/classes/YooKassa-Common-Exceptions-JsonException.md
index 96c9f313..fc4c97ea 100644
--- a/docs/classes/YooKassa-Common-Exceptions-JsonException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-JsonException.md
@@ -76,6 +76,6 @@ public __construct(mixed $message = "", mixed $code, mixed $previous =
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-NotFoundException.md b/docs/classes/YooKassa-Common-Exceptions-NotFoundException.md
index fce9252b..9f95f307 100644
--- a/docs/classes/YooKassa-Common-Exceptions-NotFoundException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-NotFoundException.md
@@ -152,6 +152,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-ResponseProcessingException.md b/docs/classes/YooKassa-Common-Exceptions-ResponseProcessingException.md
index cd4dd291..fc956ce6 100644
--- a/docs/classes/YooKassa-Common-Exceptions-ResponseProcessingException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-ResponseProcessingException.md
@@ -152,6 +152,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-TooManyRequestsException.md b/docs/classes/YooKassa-Common-Exceptions-TooManyRequestsException.md
index d1035ca6..64e7a2d4 100644
--- a/docs/classes/YooKassa-Common-Exceptions-TooManyRequestsException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-TooManyRequestsException.md
@@ -152,6 +152,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-Exceptions-UnauthorizedException.md b/docs/classes/YooKassa-Common-Exceptions-UnauthorizedException.md
index d7c83e29..1cec7b3e 100644
--- a/docs/classes/YooKassa-Common-Exceptions-UnauthorizedException.md
+++ b/docs/classes/YooKassa-Common-Exceptions-UnauthorizedException.md
@@ -155,6 +155,6 @@ public getResponseHeaders() : string[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-HttpVerb.md b/docs/classes/YooKassa-Common-HttpVerb.md
index 94d00a88..0d8364b7 100644
--- a/docs/classes/YooKassa-Common-HttpVerb.md
+++ b/docs/classes/YooKassa-Common-HttpVerb.md
@@ -179,6 +179,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-LoggerWrapper.md b/docs/classes/YooKassa-Common-LoggerWrapper.md
index 342f726e..df47e133 100644
--- a/docs/classes/YooKassa-Common-LoggerWrapper.md
+++ b/docs/classes/YooKassa-Common-LoggerWrapper.md
@@ -299,6 +299,6 @@ that are not necessarily wrong.
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Common-ResponseObject.md b/docs/classes/YooKassa-Common-ResponseObject.md
index 193e34cc..a47ec0b2 100644
--- a/docs/classes/YooKassa-Common-ResponseObject.md
+++ b/docs/classes/YooKassa-Common-ResponseObject.md
@@ -162,6 +162,6 @@ public getHeaders() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-Config-ConfigurationLoader.md b/docs/classes/YooKassa-Helpers-Config-ConfigurationLoader.md
index 963e9fdd..86af384d 100644
--- a/docs/classes/YooKassa-Helpers-Config-ConfigurationLoader.md
+++ b/docs/classes/YooKassa-Helpers-Config-ConfigurationLoader.md
@@ -73,6 +73,6 @@ public load(mixed $filePath = null) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-Config-ConfigurationLoaderInterface.md b/docs/classes/YooKassa-Helpers-Config-ConfigurationLoaderInterface.md
index 0a43adaf..b4c71222 100644
--- a/docs/classes/YooKassa-Helpers-Config-ConfigurationLoaderInterface.md
+++ b/docs/classes/YooKassa-Helpers-Config-ConfigurationLoaderInterface.md
@@ -64,6 +64,6 @@ public load() : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-ProductCode.md b/docs/classes/YooKassa-Helpers-ProductCode.md
index 2cc3b89c..6ac546cb 100644
--- a/docs/classes/YooKassa-Helpers-ProductCode.md
+++ b/docs/classes/YooKassa-Helpers-ProductCode.md
@@ -344,6 +344,6 @@ public validate() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-Random.md b/docs/classes/YooKassa-Helpers-Random.md
index c2694d3f..eb21db1e 100644
--- a/docs/classes/YooKassa-Helpers-Random.md
+++ b/docs/classes/YooKassa-Helpers-Random.md
@@ -243,6 +243,6 @@ Static public value(array $values, bool $useBest = true) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-RawHeadersParser.md b/docs/classes/YooKassa-Helpers-RawHeadersParser.md
index fa22d17b..5020a413 100644
--- a/docs/classes/YooKassa-Helpers-RawHeadersParser.md
+++ b/docs/classes/YooKassa-Helpers-RawHeadersParser.md
@@ -57,6 +57,6 @@ Static public parse(mixed $rawHeaders) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-SecurityHelper.md b/docs/classes/YooKassa-Helpers-SecurityHelper.md
index 32bb50be..2c8c001e 100644
--- a/docs/classes/YooKassa-Helpers-SecurityHelper.md
+++ b/docs/classes/YooKassa-Helpers-SecurityHelper.md
@@ -66,6 +66,6 @@ public isIPTrusted($ip) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-StringObject.md b/docs/classes/YooKassa-Helpers-StringObject.md
index 9ee0fca4..c5395570 100644
--- a/docs/classes/YooKassa-Helpers-StringObject.md
+++ b/docs/classes/YooKassa-Helpers-StringObject.md
@@ -83,6 +83,6 @@ public __toString() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-TypeCast.md b/docs/classes/YooKassa-Helpers-TypeCast.md
index b82ef57e..8d1e97ff 100644
--- a/docs/classes/YooKassa-Helpers-TypeCast.md
+++ b/docs/classes/YooKassa-Helpers-TypeCast.md
@@ -162,6 +162,6 @@ Static public castToDateTime(string|int|\DateTime $value) : \DateTime|null
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Helpers-UUID.md b/docs/classes/YooKassa-Helpers-UUID.md
index 159bacea..3bda62d6 100644
--- a/docs/classes/YooKassa-Helpers-UUID.md
+++ b/docs/classes/YooKassa-Helpers-UUID.md
@@ -57,6 +57,6 @@ Static public v4() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Airline.md b/docs/classes/YooKassa-Model-Airline.md
index 57124ccb..50678b9c 100644
--- a/docs/classes/YooKassa-Model-Airline.md
+++ b/docs/classes/YooKassa-Model-Airline.md
@@ -666,6 +666,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-AirlineInterface.md b/docs/classes/YooKassa-Model-AirlineInterface.md
index f08ae67c..112f825d 100644
--- a/docs/classes/YooKassa-Model-AirlineInterface.md
+++ b/docs/classes/YooKassa-Model-AirlineInterface.md
@@ -108,6 +108,6 @@ public getLegs() : \YooKassa\Model\LegInterface[]
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-AmountInterface.md b/docs/classes/YooKassa-Model-AmountInterface.md
index 33ac9c7d..96bdd5cd 100644
--- a/docs/classes/YooKassa-Model-AmountInterface.md
+++ b/docs/classes/YooKassa-Model-AmountInterface.md
@@ -147,6 +147,6 @@ public setCurrency(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-AuthorizationDetails.md b/docs/classes/YooKassa-Model-AuthorizationDetails.md
index 86548721..595f7086 100644
--- a/docs/classes/YooKassa-Model-AuthorizationDetails.md
+++ b/docs/classes/YooKassa-Model-AuthorizationDetails.md
@@ -516,6 +516,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-AuthorizationDetailsInterface.md b/docs/classes/YooKassa-Model-AuthorizationDetailsInterface.md
index ecafc893..bca5a944 100644
--- a/docs/classes/YooKassa-Model-AuthorizationDetailsInterface.md
+++ b/docs/classes/YooKassa-Model-AuthorizationDetailsInterface.md
@@ -102,6 +102,6 @@ public getThreeDSecure() : \YooKassa\Model\ThreeDSecure|null
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-BaseDeal.md b/docs/classes/YooKassa-Model-BaseDeal.md
index 1189be98..c6f06fba 100644
--- a/docs/classes/YooKassa-Model-BaseDeal.md
+++ b/docs/classes/YooKassa-Model-BaseDeal.md
@@ -371,6 +371,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-CancellationDetails.md b/docs/classes/YooKassa-Model-CancellationDetails.md
index 5187c905..dc195faa 100644
--- a/docs/classes/YooKassa-Model-CancellationDetails.md
+++ b/docs/classes/YooKassa-Model-CancellationDetails.md
@@ -449,6 +449,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-CancellationDetailsInterface.md b/docs/classes/YooKassa-Model-CancellationDetailsInterface.md
index c4c607db..1138fbfc 100644
--- a/docs/classes/YooKassa-Model-CancellationDetailsInterface.md
+++ b/docs/classes/YooKassa-Model-CancellationDetailsInterface.md
@@ -83,6 +83,6 @@ public getReason() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-CancellationDetailsPartyCode.md b/docs/classes/YooKassa-Model-CancellationDetailsPartyCode.md
index 7fba1de9..23789e13 100644
--- a/docs/classes/YooKassa-Model-CancellationDetailsPartyCode.md
+++ b/docs/classes/YooKassa-Model-CancellationDetailsPartyCode.md
@@ -153,6 +153,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-CancellationDetailsReasonCode.md b/docs/classes/YooKassa-Model-CancellationDetailsReasonCode.md
index 8aaf6dd3..5f05a38c 100644
--- a/docs/classes/YooKassa-Model-CancellationDetailsReasonCode.md
+++ b/docs/classes/YooKassa-Model-CancellationDetailsReasonCode.md
@@ -330,6 +330,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-AbstractConfirmation.md b/docs/classes/YooKassa-Model-Confirmation-AbstractConfirmation.md
index 0aeb2b48..42a7dc0c 100644
--- a/docs/classes/YooKassa-Model-Confirmation-AbstractConfirmation.md
+++ b/docs/classes/YooKassa-Model-Confirmation-AbstractConfirmation.md
@@ -442,6 +442,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationCodeVerification.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationCodeVerification.md
index 6363e777..403f1d95 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationCodeVerification.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationCodeVerification.md
@@ -435,6 +435,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationEmbedded.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationEmbedded.md
index 51e914b6..20252046 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationEmbedded.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationEmbedded.md
@@ -481,6 +481,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationExternal.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationExternal.md
index 8ead3f5b..2ccced6e 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationExternal.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationExternal.md
@@ -436,6 +436,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationFactory.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationFactory.md
index 708bdb4d..847f7346 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationFactory.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationFactory.md
@@ -89,6 +89,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Model
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationMobileApplication.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationMobileApplication.md
index f2058ebc..3448f471 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationMobileApplication.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationMobileApplication.md
@@ -559,6 +559,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationQr.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationQr.md
index f2308533..0e5c5710 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationQr.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationQr.md
@@ -494,6 +494,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Confirmation-ConfirmationRedirect.md b/docs/classes/YooKassa-Model-Confirmation-ConfirmationRedirect.md
index 580bda73..c2772974 100644
--- a/docs/classes/YooKassa-Model-Confirmation-ConfirmationRedirect.md
+++ b/docs/classes/YooKassa-Model-Confirmation-ConfirmationRedirect.md
@@ -602,6 +602,6 @@ protected setType(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-AbstractConfirmationAttributes.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-AbstractConfirmationAttributes.md
index 8797c66f..e9514a10 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-AbstractConfirmationAttributes.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-AbstractConfirmationAttributes.md
@@ -413,6 +413,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesCodeVerification.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesCodeVerification.md
index 5636b8c7..3a2fff8f 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesCodeVerification.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesCodeVerification.md
@@ -406,6 +406,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesEmbedded.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesEmbedded.md
index 4dbf488b..00366dd2 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesEmbedded.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesEmbedded.md
@@ -406,6 +406,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesExternal.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesExternal.md
index 3832a55c..d1b2bc96 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesExternal.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesExternal.md
@@ -407,6 +407,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesFactory.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesFactory.md
index 940ccd0e..513eb453 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesFactory.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesFactory.md
@@ -81,6 +81,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Model
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesMobileApplication.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesMobileApplication.md
index 42fa498e..cf371947 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesMobileApplication.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesMobileApplication.md
@@ -470,6 +470,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesQr.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesQr.md
index 6225c02e..abd58e70 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesQr.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesQr.md
@@ -406,6 +406,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesRedirect.md b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesRedirect.md
index b7642c92..fc0d8db2 100644
--- a/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesRedirect.md
+++ b/docs/classes/YooKassa-Model-ConfirmationAttributes-ConfirmationAttributesRedirect.md
@@ -513,6 +513,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ConfirmationType.md b/docs/classes/YooKassa-Model-ConfirmationType.md
index 03abd19b..c7c3bf04 100644
--- a/docs/classes/YooKassa-Model-ConfirmationType.md
+++ b/docs/classes/YooKassa-Model-ConfirmationType.md
@@ -179,6 +179,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-CurrencyCode.md b/docs/classes/YooKassa-Model-CurrencyCode.md
index ff458a80..a1405ffd 100644
--- a/docs/classes/YooKassa-Model-CurrencyCode.md
+++ b/docs/classes/YooKassa-Model-CurrencyCode.md
@@ -193,6 +193,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-CaptureDealData.md b/docs/classes/YooKassa-Model-Deal-CaptureDealData.md
index 07c41f95..0994e70b 100644
--- a/docs/classes/YooKassa-Model-Deal-CaptureDealData.md
+++ b/docs/classes/YooKassa-Model-Deal-CaptureDealData.md
@@ -415,6 +415,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-DealBalanceAmount.md b/docs/classes/YooKassa-Model-Deal-DealBalanceAmount.md
index 2652e64f..2d677f72 100644
--- a/docs/classes/YooKassa-Model-Deal-DealBalanceAmount.md
+++ b/docs/classes/YooKassa-Model-Deal-DealBalanceAmount.md
@@ -481,6 +481,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-DealStatus.md b/docs/classes/YooKassa-Model-Deal-DealStatus.md
index 9a9e87ea..5e318ca8 100644
--- a/docs/classes/YooKassa-Model-Deal-DealStatus.md
+++ b/docs/classes/YooKassa-Model-Deal-DealStatus.md
@@ -144,6 +144,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-DealType.md b/docs/classes/YooKassa-Model-Deal-DealType.md
index 0ef9fb55..9500722f 100644
--- a/docs/classes/YooKassa-Model-Deal-DealType.md
+++ b/docs/classes/YooKassa-Model-Deal-DealType.md
@@ -133,6 +133,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-FeeMoment.md b/docs/classes/YooKassa-Model-Deal-FeeMoment.md
index e917fc25..654118d2 100644
--- a/docs/classes/YooKassa-Model-Deal-FeeMoment.md
+++ b/docs/classes/YooKassa-Model-Deal-FeeMoment.md
@@ -143,6 +143,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-PaymentDealInfo.md b/docs/classes/YooKassa-Model-Deal-PaymentDealInfo.md
index e890445b..27b39ca8 100644
--- a/docs/classes/YooKassa-Model-Deal-PaymentDealInfo.md
+++ b/docs/classes/YooKassa-Model-Deal-PaymentDealInfo.md
@@ -469,6 +469,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-PayoutDealInfo.md b/docs/classes/YooKassa-Model-Deal-PayoutDealInfo.md
index cff2270c..1d9541bd 100644
--- a/docs/classes/YooKassa-Model-Deal-PayoutDealInfo.md
+++ b/docs/classes/YooKassa-Model-Deal-PayoutDealInfo.md
@@ -392,6 +392,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-RefundDealData.md b/docs/classes/YooKassa-Model-Deal-RefundDealData.md
index f2012ab5..25d81156 100644
--- a/docs/classes/YooKassa-Model-Deal-RefundDealData.md
+++ b/docs/classes/YooKassa-Model-Deal-RefundDealData.md
@@ -428,6 +428,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-RefundDealInfo.md b/docs/classes/YooKassa-Model-Deal-RefundDealInfo.md
index 3bfa1d1f..cf083374 100644
--- a/docs/classes/YooKassa-Model-Deal-RefundDealInfo.md
+++ b/docs/classes/YooKassa-Model-Deal-RefundDealInfo.md
@@ -482,6 +482,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-SettlementPayoutPayment.md b/docs/classes/YooKassa-Model-Deal-SettlementPayoutPayment.md
index 7af457cb..87a16072 100644
--- a/docs/classes/YooKassa-Model-Deal-SettlementPayoutPayment.md
+++ b/docs/classes/YooKassa-Model-Deal-SettlementPayoutPayment.md
@@ -448,6 +448,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-SettlementPayoutPaymentType.md b/docs/classes/YooKassa-Model-Deal-SettlementPayoutPaymentType.md
index 9f7c6608..c28f1782 100644
--- a/docs/classes/YooKassa-Model-Deal-SettlementPayoutPaymentType.md
+++ b/docs/classes/YooKassa-Model-Deal-SettlementPayoutPaymentType.md
@@ -131,6 +131,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Deal-SettlementPayoutRefund.md b/docs/classes/YooKassa-Model-Deal-SettlementPayoutRefund.md
index 30f5900d..dcde5dd8 100644
--- a/docs/classes/YooKassa-Model-Deal-SettlementPayoutRefund.md
+++ b/docs/classes/YooKassa-Model-Deal-SettlementPayoutRefund.md
@@ -452,6 +452,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-DealInterface.md b/docs/classes/YooKassa-Model-DealInterface.md
index a1b07e25..d6aa97cd 100644
--- a/docs/classes/YooKassa-Model-DealInterface.md
+++ b/docs/classes/YooKassa-Model-DealInterface.md
@@ -258,6 +258,6 @@ public getTest() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Leg.md b/docs/classes/YooKassa-Model-Leg.md
index 425e530e..9bfa2c4c 100644
--- a/docs/classes/YooKassa-Model-Leg.md
+++ b/docs/classes/YooKassa-Model-Leg.md
@@ -584,6 +584,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-LegInterface.md b/docs/classes/YooKassa-Model-LegInterface.md
index b55ecb08..75b05b56 100644
--- a/docs/classes/YooKassa-Model-LegInterface.md
+++ b/docs/classes/YooKassa-Model-LegInterface.md
@@ -159,6 +159,6 @@ public setDepartureDate(\DateTime|string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Locale.md b/docs/classes/YooKassa-Model-Locale.md
index aa9235bf..4f064d88 100644
--- a/docs/classes/YooKassa-Model-Locale.md
+++ b/docs/classes/YooKassa-Model-Locale.md
@@ -143,6 +143,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Metadata.md b/docs/classes/YooKassa-Model-Metadata.md
index 74f81ad3..c721b5db 100644
--- a/docs/classes/YooKassa-Model-Metadata.md
+++ b/docs/classes/YooKassa-Model-Metadata.md
@@ -377,6 +377,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-MonetaryAmount.md b/docs/classes/YooKassa-Model-MonetaryAmount.md
index d1faebd1..042a923a 100644
--- a/docs/classes/YooKassa-Model-MonetaryAmount.md
+++ b/docs/classes/YooKassa-Model-MonetaryAmount.md
@@ -541,6 +541,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-AbstractNotification.md b/docs/classes/YooKassa-Model-Notification-AbstractNotification.md
index 2e2ab733..421778ce 100644
--- a/docs/classes/YooKassa-Model-Notification-AbstractNotification.md
+++ b/docs/classes/YooKassa-Model-Notification-AbstractNotification.md
@@ -573,6 +573,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationCanceled.md b/docs/classes/YooKassa-Model-Notification-NotificationCanceled.md
index ac1167b6..24f8646c 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationCanceled.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationCanceled.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationDealClosed.md b/docs/classes/YooKassa-Model-Notification-NotificationDealClosed.md
index 08630da1..5542eb2a 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationDealClosed.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationDealClosed.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationFactory.md b/docs/classes/YooKassa-Model-Notification-NotificationFactory.md
index bf1773a2..740ce4d3 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationFactory.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationFactory.md
@@ -140,6 +140,6 @@ public factory(array $data) : \YooKassa\Model\Notification\AbstractNotification
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationInterface.md b/docs/classes/YooKassa-Model-Notification-NotificationInterface.md
index b53018ca..c4c4b056 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationInterface.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationInterface.md
@@ -104,6 +104,6 @@ public getObject() : \YooKassa\Model\PaymentInterface|\YooKassa\Model\RefundInte
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationPayoutCanceled.md b/docs/classes/YooKassa-Model-Notification-NotificationPayoutCanceled.md
index c916a5bd..86de8be8 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationPayoutCanceled.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationPayoutCanceled.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationPayoutSucceeded.md b/docs/classes/YooKassa-Model-Notification-NotificationPayoutSucceeded.md
index b651045a..0223001d 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationPayoutSucceeded.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationPayoutSucceeded.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationRefundSucceeded.md b/docs/classes/YooKassa-Model-Notification-NotificationRefundSucceeded.md
index 2406b370..d0f6712a 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationRefundSucceeded.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationRefundSucceeded.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationSucceeded.md b/docs/classes/YooKassa-Model-Notification-NotificationSucceeded.md
index 9d53e21a..2c3ab65e 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationSucceeded.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationSucceeded.md
@@ -598,6 +598,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Notification-NotificationWaitingForCapture.md b/docs/classes/YooKassa-Model-Notification-NotificationWaitingForCapture.md
index 75b35b9a..12a0baf4 100644
--- a/docs/classes/YooKassa-Model-Notification-NotificationWaitingForCapture.md
+++ b/docs/classes/YooKassa-Model-Notification-NotificationWaitingForCapture.md
@@ -603,6 +603,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-NotificationEventType.md b/docs/classes/YooKassa-Model-NotificationEventType.md
index fb9f9768..5d1d6086 100644
--- a/docs/classes/YooKassa-Model-NotificationEventType.md
+++ b/docs/classes/YooKassa-Model-NotificationEventType.md
@@ -202,6 +202,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-NotificationType.md b/docs/classes/YooKassa-Model-NotificationType.md
index 9f51b8d8..0e39f675 100644
--- a/docs/classes/YooKassa-Model-NotificationType.md
+++ b/docs/classes/YooKassa-Model-NotificationType.md
@@ -131,6 +131,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Passenger.md b/docs/classes/YooKassa-Model-Passenger.md
index 25b2844b..2d5ef195 100644
--- a/docs/classes/YooKassa-Model-Passenger.md
+++ b/docs/classes/YooKassa-Model-Passenger.md
@@ -490,6 +490,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PassengerInterface.md b/docs/classes/YooKassa-Model-PassengerInterface.md
index 92025eb3..e5f741a2 100644
--- a/docs/classes/YooKassa-Model-PassengerInterface.md
+++ b/docs/classes/YooKassa-Model-PassengerInterface.md
@@ -118,6 +118,6 @@ public setLastName(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payment.md b/docs/classes/YooKassa-Model-Payment.md
index fb181e22..8c051f9c 100644
--- a/docs/classes/YooKassa-Model-Payment.md
+++ b/docs/classes/YooKassa-Model-Payment.md
@@ -1808,6 +1808,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-AbstractPaymentData.md b/docs/classes/YooKassa-Model-PaymentData-AbstractPaymentData.md
index a503d0f4..a6495248 100644
--- a/docs/classes/YooKassa-Model-PaymentData-AbstractPaymentData.md
+++ b/docs/classes/YooKassa-Model-PaymentData-AbstractPaymentData.md
@@ -392,6 +392,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatData.md b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatData.md
index 92e19863..887d91af 100644
--- a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatData.md
+++ b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatData.md
@@ -516,6 +516,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataInterface.md b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataInterface.md
index 97e558c1..b9bfe63e 100644
--- a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataInterface.md
+++ b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataInterface.md
@@ -102,6 +102,6 @@ public getAmount() : \YooKassa\Model\AmountInterface
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataRate.md b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataRate.md
index 32f5bde9..7aedeeb0 100644
--- a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataRate.md
+++ b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataRate.md
@@ -169,6 +169,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataType.md b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataType.md
index cccc6d53..329d0fbf 100644
--- a/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataType.md
+++ b/docs/classes/YooKassa-Model-PaymentData-B2b-Sberbank-VatDataType.md
@@ -158,6 +158,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataAlfabank.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataAlfabank.md
index b13079ad..358a544c 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataAlfabank.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataAlfabank.md
@@ -440,6 +440,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataApplePay.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataApplePay.md
index 76c2c591..74b93b14 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataApplePay.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataApplePay.md
@@ -466,6 +466,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataB2bSberbank.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataB2bSberbank.md
index af5e1e47..bd2ae48f 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataB2bSberbank.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataB2bSberbank.md
@@ -494,6 +494,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCard.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCard.md
index 59403acd..ee7b2692 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCard.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCard.md
@@ -440,6 +440,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCardCard.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCardCard.md
index 73b7df51..c22b9697 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCardCard.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataBankCardCard.md
@@ -635,6 +635,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataCash.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataCash.md
index d43fd26c..61df36be 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataCash.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataCash.md
@@ -440,6 +440,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataFactory.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataFactory.md
index 8bb4c288..36b5f549 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataFactory.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataFactory.md
@@ -89,6 +89,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Model
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataGooglePay.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataGooglePay.md
index 00e98eee..399870e7 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataGooglePay.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataGooglePay.md
@@ -494,6 +494,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataInstallments.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataInstallments.md
index 4845677c..a8721f91 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataInstallments.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataInstallments.md
@@ -385,6 +385,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataMobileBalance.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataMobileBalance.md
index b0fef8df..433b0909 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataMobileBalance.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataMobileBalance.md
@@ -436,6 +436,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataQiwi.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataQiwi.md
index 69a54e1c..f636bb10 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataQiwi.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataQiwi.md
@@ -427,6 +427,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataSberbank.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataSberbank.md
index fda1c0df..730a9ff5 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataSberbank.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataSberbank.md
@@ -436,6 +436,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataSbp.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataSbp.md
index 50ba8a2f..79c9a2f7 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataSbp.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataSbp.md
@@ -385,6 +385,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataTinkoffBank.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataTinkoffBank.md
index 92d68584..4d4ddd88 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataTinkoffBank.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataTinkoffBank.md
@@ -385,6 +385,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataWebmoney.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataWebmoney.md
index ace18eca..091cbb78 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataWebmoney.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataWebmoney.md
@@ -386,6 +386,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataWechat.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataWechat.md
index b98fb3d3..6a58a54b 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataWechat.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataWechat.md
@@ -391,6 +391,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentData-PaymentDataYooMoney.md b/docs/classes/YooKassa-Model-PaymentData-PaymentDataYooMoney.md
index 381d33c9..af228a57 100644
--- a/docs/classes/YooKassa-Model-PaymentData-PaymentDataYooMoney.md
+++ b/docs/classes/YooKassa-Model-PaymentData-PaymentDataYooMoney.md
@@ -385,6 +385,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentInterface.md b/docs/classes/YooKassa-Model-PaymentInterface.md
index a0b2d00e..06090bcf 100644
--- a/docs/classes/YooKassa-Model-PaymentInterface.md
+++ b/docs/classes/YooKassa-Model-PaymentInterface.md
@@ -428,6 +428,6 @@ public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-AbstractPaymentMethod.md b/docs/classes/YooKassa-Model-PaymentMethod-AbstractPaymentMethod.md
index b37b933f..81e93663 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-AbstractPaymentMethod.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-AbstractPaymentMethod.md
@@ -541,6 +541,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetails.md b/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetails.md
index 20b16e36..d96d0484 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetails.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetails.md
@@ -826,6 +826,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetailsInterface.md b/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetailsInterface.md
index ec652e39..56311b54 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetailsInterface.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-B2b-Sberbank-PayerBankDetailsInterface.md
@@ -216,6 +216,6 @@ public getAccount() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-BankCardSource.md b/docs/classes/YooKassa-Model-PaymentMethod-BankCardSource.md
index b2eda351..a05834ab 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-BankCardSource.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-BankCardSource.md
@@ -143,6 +143,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodAlfaBank.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodAlfaBank.md
index fc71bf4c..4a283e87 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodAlfaBank.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodAlfaBank.md
@@ -603,6 +603,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodApplePay.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodApplePay.md
index 49cf25f5..33e698df 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodApplePay.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodApplePay.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodB2bSberbank.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodB2bSberbank.md
index 99528ff8..928cdd75 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodB2bSberbank.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodB2bSberbank.md
@@ -724,6 +724,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodBankCard.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodBankCard.md
index 3089b968..7b7f2645 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodBankCard.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodBankCard.md
@@ -1066,6 +1066,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCardType.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCardType.md
index a6f96e52..0c05684a 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCardType.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCardType.md
@@ -195,6 +195,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCash.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCash.md
index 21a5ef05..e5e09edc 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCash.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodCash.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodFactory.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodFactory.md
index abd5ec7a..a2aea63d 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodFactory.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodFactory.md
@@ -89,6 +89,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Model
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodGooglePay.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodGooglePay.md
index b0c00c89..f6918718 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodGooglePay.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodGooglePay.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodInstallments.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodInstallments.md
index 94ba689f..aceed7c8 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodInstallments.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodInstallments.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodMobileBalance.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodMobileBalance.md
index 34fbdfe5..b07968ff 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodMobileBalance.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodMobileBalance.md
@@ -603,6 +603,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodPsb.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodPsb.md
index 3777a076..420cf00d 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodPsb.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodPsb.md
@@ -536,6 +536,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodQiwi.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodQiwi.md
index 11ee12f6..f6105ce6 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodQiwi.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodQiwi.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSberbank.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSberbank.md
index bd1829e9..a7449925 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSberbank.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSberbank.md
@@ -603,6 +603,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSbp.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSbp.md
index c88819f3..94028c3f 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSbp.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodSbp.md
@@ -536,6 +536,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodTinkoffBank.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodTinkoffBank.md
index ee002903..b213c771 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodTinkoffBank.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodTinkoffBank.md
@@ -536,6 +536,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWebmoney.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWebmoney.md
index 46c709b8..34909f02 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWebmoney.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWebmoney.md
@@ -549,6 +549,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWechat.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWechat.md
index f0424f30..0780a622 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWechat.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodWechat.md
@@ -542,6 +542,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodYooMoney.md b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodYooMoney.md
index 01487fc1..2e654488 100644
--- a/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodYooMoney.md
+++ b/docs/classes/YooKassa-Model-PaymentMethod-PaymentMethodYooMoney.md
@@ -616,6 +616,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentMethodType.md b/docs/classes/YooKassa-Model-PaymentMethodType.md
index ba8eefa8..98b6b67c 100644
--- a/docs/classes/YooKassa-Model-PaymentMethodType.md
+++ b/docs/classes/YooKassa-Model-PaymentMethodType.md
@@ -303,6 +303,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PaymentStatus.md b/docs/classes/YooKassa-Model-PaymentStatus.md
index e242b81e..ab756747 100644
--- a/docs/classes/YooKassa-Model-PaymentStatus.md
+++ b/docs/classes/YooKassa-Model-PaymentStatus.md
@@ -169,6 +169,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-AbstractPayoutDestination.md b/docs/classes/YooKassa-Model-Payout-AbstractPayoutDestination.md
index 1bee1f5d..02f29596 100644
--- a/docs/classes/YooKassa-Model-Payout-AbstractPayoutDestination.md
+++ b/docs/classes/YooKassa-Model-Payout-AbstractPayoutDestination.md
@@ -392,6 +392,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetails.md b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetails.md
index b947fc8b..cd23f64b 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetails.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetails.md
@@ -448,6 +448,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsPartyCode.md b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsPartyCode.md
index 0c85350e..3fc59ce5 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsPartyCode.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsPartyCode.md
@@ -153,6 +153,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsReasonCode.md b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsReasonCode.md
index 5480f440..daea859a 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsReasonCode.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutCancellationDetailsReasonCode.md
@@ -173,6 +173,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCard.md b/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCard.md
index 48b3bcba..8df25e6d 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCard.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCard.md
@@ -440,6 +440,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCardCard.md b/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCardCard.md
index d7679b85..334942e2 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCardCard.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutDestinationBankCardCard.md
@@ -668,6 +668,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutDestinationFactory.md b/docs/classes/YooKassa-Model-Payout-PayoutDestinationFactory.md
index 224ac64d..c868bea5 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutDestinationFactory.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutDestinationFactory.md
@@ -89,6 +89,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Model
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutDestinationType.md b/docs/classes/YooKassa-Model-Payout-PayoutDestinationType.md
index 35ce3834..2dc9db3f 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutDestinationType.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutDestinationType.md
@@ -123,6 +123,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout-PayoutDestinationYooMoney.md b/docs/classes/YooKassa-Model-Payout-PayoutDestinationYooMoney.md
index 4014e573..ef264e1a 100644
--- a/docs/classes/YooKassa-Model-Payout-PayoutDestinationYooMoney.md
+++ b/docs/classes/YooKassa-Model-Payout-PayoutDestinationYooMoney.md
@@ -465,6 +465,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Payout.md b/docs/classes/YooKassa-Model-Payout.md
index ea38b07e..f2f24701 100644
--- a/docs/classes/YooKassa-Model-Payout.md
+++ b/docs/classes/YooKassa-Model-Payout.md
@@ -962,6 +962,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PayoutInterface.md b/docs/classes/YooKassa-Model-PayoutInterface.md
index 2395d398..c2de6651 100644
--- a/docs/classes/YooKassa-Model-PayoutInterface.md
+++ b/docs/classes/YooKassa-Model-PayoutInterface.md
@@ -238,6 +238,6 @@ public getTest() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-PayoutStatus.md b/docs/classes/YooKassa-Model-PayoutStatus.md
index f7a9e5f8..48ce598e 100644
--- a/docs/classes/YooKassa-Model-PayoutStatus.md
+++ b/docs/classes/YooKassa-Model-PayoutStatus.md
@@ -158,6 +158,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-AdditionalUserProps.md b/docs/classes/YooKassa-Model-Receipt-AdditionalUserProps.md
new file mode 100644
index 00000000..917375b0
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-AdditionalUserProps.md
@@ -0,0 +1,474 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\AdditionalUserProps
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Class AdditionalUserProps
+
+**Description:**
+
+Дополнительный реквизит пользователя
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [NAME_MAX_LENGTH](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#constant_NAME_MAX_LENGTH) | | |
+| public | [VALUE_MAX_LENGTH](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#constant_VALUE_MAX_LENGTH) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [$name](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#property_name) | | Наименование дополнительного реквизита пользователя (тег в 54 ФЗ — 1085). Не более 64 символов. |
+| public | [$value](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#property_value) | | Значение дополнительного реквизита пользователя (тег в 54 ФЗ — 1086). Не более 234 символов. |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
+| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
+| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
+| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
+| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
+| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getName()](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#method_getName) | | Возвращает наименование дополнительного реквизита пользователя |
+| public | [getValue()](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#method_getValue) | | Возвращает значение дополнительного реквизита пользователя |
+| public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации |
+| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства |
+| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
+| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
+| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setName()](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#method_setName) | | Устанавливает наименование дополнительного реквизита пользователя |
+| public | [setValue()](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md#method_setValue) | | Устанавливает значение дополнительного реквизита пользователя |
+| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
+| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
+
+---
+### Details
+* File: [lib/Model/Receipt/AdditionalUserProps.php](../../lib/Model/Receipt/AdditionalUserProps.php)
+* Package: YooKassa
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+ * \YooKassa\Model\Receipt\AdditionalUserProps
+
+---
+## Constants
+
+###### NAME_MAX_LENGTH
+```php
+NAME_MAX_LENGTH = 64 : int
+```
+
+
+
+###### VALUE_MAX_LENGTH
+```php
+VALUE_MAX_LENGTH = 234 : int
+```
+
+
+
+---
+## Properties
+
+#### public $name : string
+---
+***Description***
+
+Наименование дополнительного реквизита пользователя (тег в 54 ФЗ — 1085). Не более 64 символов.
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $value : string
+---
+***Description***
+
+Значение дополнительного реквизита пользователя (тег в 54 ФЗ — 1086). Не более 234 символов.
+
+**Type:** string
+
+**Details:**
+
+
+
+---
+## Methods
+
+#### public __construct() : mixed
+
+```php
+public __construct(array $data = array()) : mixed
+```
+
+**Summary**
+
+AbstractObject constructor.
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array | data | |
+
+**Returns:** mixed -
+
+
+
+#### public __get() : mixed
+
+```php
+public __get(string $propertyName) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public __isset() : bool
+
+```php
+public __isset(string $propertyName) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public __set() : mixed
+
+```php
+public __set(string $propertyName, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public __unset() : mixed
+
+```php
+public __unset(string $propertyName) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public fromArray() : mixed
+
+```php
+public fromArray(array|\Traversable $sourceArray) : mixed
+```
+
+**Summary**
+
+Устанавливает значения свойств текущего объекта из массива
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
+
+**Returns:** mixed -
+
+
+
+#### public getName() : string
+
+```php
+public getName() : string
+```
+
+**Summary**
+
+Возвращает наименование дополнительного реквизита пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\AdditionalUserProps](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md)
+
+**Returns:** string - Наименование дополнительного реквизита пользователя
+
+
+
+#### public getValue() : string
+
+```php
+public getValue() : string
+```
+
+**Summary**
+
+Возвращает значение дополнительного реквизита пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\AdditionalUserProps](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md)
+
+**Returns:** string - Значение дополнительного реквизита пользователя
+
+
+
+#### public jsonSerialize() : array
+
+```php
+public jsonSerialize() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### public offsetExists() : bool
+
+```php
+public offsetExists(string $offset) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public offsetGet() : mixed
+
+```php
+public offsetGet(string $offset) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public offsetSet() : mixed
+
+```php
+public offsetSet(string $offset, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public offsetUnset() : mixed
+
+```php
+public offsetUnset(string $offset) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public setName() : mixed
+
+```php
+public setName(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает наименование дополнительного реквизита пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\AdditionalUserProps](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Наименование дополнительного реквизита пользователя |
+
+**Returns:** mixed -
+
+
+
+#### public setValue() : mixed
+
+```php
+public setValue(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение дополнительного реквизита пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\AdditionalUserProps](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Значение дополнительного реквизита пользователя |
+
+**Returns:** mixed -
+
+
+
+#### public toArray() : array
+
+```php
+public toArray() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+Является алиасом метода AbstractObject::jsonSerialize()
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### protected getUnknownProperties() : array
+
+```php
+protected getUnknownProperties() : array
+```
+
+**Summary**
+
+Возвращает массив свойств которые не существуют, но были заданы у объекта
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-AgentType.md b/docs/classes/YooKassa-Model-Receipt-AgentType.md
index 78c4cd94..708b4895 100644
--- a/docs/classes/YooKassa-Model-Receipt-AgentType.md
+++ b/docs/classes/YooKassa-Model-Receipt-AgentType.md
@@ -179,6 +179,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-IndustryDetails.md b/docs/classes/YooKassa-Model-Receipt-IndustryDetails.md
new file mode 100644
index 00000000..051f66b0
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-IndustryDetails.md
@@ -0,0 +1,638 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\IndustryDetails
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Class IndustryDetails
+
+**Description:**
+
+Данные отраслевого реквизита
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [DOCUMENT_NUMBER_MAX_LENGTH](../classes/YooKassa-Model-Receipt-IndustryDetails.md#constant_DOCUMENT_NUMBER_MAX_LENGTH) | | |
+| public | [VALUE_MAX_LENGTH](../classes/YooKassa-Model-Receipt-IndustryDetails.md#constant_VALUE_MAX_LENGTH) | | |
+| public | [DOCUMENT_DATE_FORMAT](../classes/YooKassa-Model-Receipt-IndustryDetails.md#constant_DOCUMENT_DATE_FORMAT) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [$document_date](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_document_date) | | Дата документа основания (тег в 54 ФЗ — 1263) |
+| public | [$document_number](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_document_number) | | Номер нормативного акта федерального органа исполнительной власти (тег в 54 ФЗ — 1264) |
+| public | [$documentDate](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_documentDate) | | Дата документа основания (тег в 54 ФЗ — 1263) |
+| public | [$documentNumber](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_documentNumber) | | Номер нормативного акта федерального органа исполнительной власти (тег в 54 ФЗ — 1264) |
+| public | [$federal_id](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_federal_id) | | Идентификатор федерального органа исполнительной власти (тег в 54 ФЗ — 1262) |
+| public | [$federalId](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_federalId) | | Идентификатор федерального органа исполнительной власти (тег в 54 ФЗ — 1262) |
+| public | [$value](../classes/YooKassa-Model-Receipt-IndustryDetails.md#property_value) | | Значение отраслевого реквизита (тег в 54 ФЗ — 1265) |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
+| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
+| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
+| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
+| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
+| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getDocumentDate()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_getDocumentDate) | | Возвращает дату документа основания |
+| public | [getDocumentNumber()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_getDocumentNumber) | | Возвращает номер нормативного акта федерального органа исполнительной власти |
+| public | [getFederalId()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_getFederalId) | | Возвращает идентификатор федерального органа исполнительной власти |
+| public | [getValue()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_getValue) | | Возвращает значение отраслевого реквизита |
+| public | [jsonSerialize()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации |
+| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства |
+| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
+| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
+| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setDocumentDate()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_setDocumentDate) | | Устанавливает дату документа основания |
+| public | [setDocumentNumber()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_setDocumentNumber) | | Устанавливает номер нормативного акта федерального органа исполнительной власти |
+| public | [setFederalId()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_setFederalId) | | Устанавливает идентификатор федерального органа исполнительной власти |
+| public | [setValue()](../classes/YooKassa-Model-Receipt-IndustryDetails.md#method_setValue) | | Устанавливает значение отраслевого реквизита |
+| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
+| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
+
+---
+### Details
+* File: [lib/Model/Receipt/IndustryDetails.php](../../lib/Model/Receipt/IndustryDetails.php)
+* Package: YooKassa
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+ * \YooKassa\Model\Receipt\IndustryDetails
+
+---
+## Constants
+
+###### DOCUMENT_NUMBER_MAX_LENGTH
+```php
+DOCUMENT_NUMBER_MAX_LENGTH = 32 : int
+```
+
+
+
+###### VALUE_MAX_LENGTH
+```php
+VALUE_MAX_LENGTH = 256 : int
+```
+
+
+
+###### DOCUMENT_DATE_FORMAT
+```php
+DOCUMENT_DATE_FORMAT = 'Y-m-d' : string
+```
+
+
+
+---
+## Properties
+
+#### public $document_date : \YooKassa\Model\Receipt\Datetime
+---
+***Description***
+
+Дата документа основания (тег в 54 ФЗ — 1263)
+
+**Type:** \YooKassa\Model\Receipt\Datetime
+
+**Details:**
+
+
+
+#### public $document_number : string
+---
+***Description***
+
+Номер нормативного акта федерального органа исполнительной власти (тег в 54 ФЗ — 1264)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $documentDate : \YooKassa\Model\Receipt\Datetime
+---
+***Description***
+
+Дата документа основания (тег в 54 ФЗ — 1263)
+
+**Type:** \YooKassa\Model\Receipt\Datetime
+
+**Details:**
+
+
+
+#### public $documentNumber : string
+---
+***Description***
+
+Номер нормативного акта федерального органа исполнительной власти (тег в 54 ФЗ — 1264)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $federal_id : string
+---
+***Description***
+
+Идентификатор федерального органа исполнительной власти (тег в 54 ФЗ — 1262)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $federalId : string
+---
+***Description***
+
+Идентификатор федерального органа исполнительной власти (тег в 54 ФЗ — 1262)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $value : string
+---
+***Description***
+
+Значение отраслевого реквизита (тег в 54 ФЗ — 1265)
+
+**Type:** string
+
+**Details:**
+
+
+
+---
+## Methods
+
+#### public __construct() : mixed
+
+```php
+public __construct(array $data = array()) : mixed
+```
+
+**Summary**
+
+AbstractObject constructor.
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array | data | |
+
+**Returns:** mixed -
+
+
+
+#### public __get() : mixed
+
+```php
+public __get(string $propertyName) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public __isset() : bool
+
+```php
+public __isset(string $propertyName) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public __set() : mixed
+
+```php
+public __set(string $propertyName, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public __unset() : mixed
+
+```php
+public __unset(string $propertyName) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public fromArray() : mixed
+
+```php
+public fromArray(array|\Traversable $sourceArray) : mixed
+```
+
+**Summary**
+
+Устанавливает значения свойств текущего объекта из массива
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
+
+**Returns:** mixed -
+
+
+
+#### public getDocumentDate() : \YooKassa\Model\Receipt\Datetime
+
+```php
+public getDocumentDate() : \YooKassa\Model\Receipt\Datetime
+```
+
+**Summary**
+
+Возвращает дату документа основания
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+**Returns:** \YooKassa\Model\Receipt\Datetime - Дата документа основания
+
+
+
+#### public getDocumentNumber() : string
+
+```php
+public getDocumentNumber() : string
+```
+
+**Summary**
+
+Возвращает номер нормативного акта федерального органа исполнительной власти
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+**Returns:** string - Номер нормативного акта федерального органа исполнительной власти
+
+
+
+#### public getFederalId() : string
+
+```php
+public getFederalId() : string
+```
+
+**Summary**
+
+Возвращает идентификатор федерального органа исполнительной власти
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+**Returns:** string - Идентификатор федерального органа исполнительной власти
+
+
+
+#### public getValue() : string
+
+```php
+public getValue() : string
+```
+
+**Summary**
+
+Возвращает значение отраслевого реквизита
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+**Returns:** string - Значение отраслевого реквизита
+
+
+
+#### public jsonSerialize() : array
+
+```php
+public jsonSerialize() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+**Returns:** array -
+
+##### Tags
+| Tag | Version | Description |
+| --- | ------- | ----------- |
+| inheritdoc | | |
+
+
+#### public offsetExists() : bool
+
+```php
+public offsetExists(string $offset) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public offsetGet() : mixed
+
+```php
+public offsetGet(string $offset) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public offsetSet() : mixed
+
+```php
+public offsetSet(string $offset, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public offsetUnset() : mixed
+
+```php
+public offsetUnset(string $offset) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public setDocumentDate() : mixed
+
+```php
+public setDocumentDate(string|\YooKassa\Model\Receipt\Datetime $value) : mixed
+```
+
+**Summary**
+
+Устанавливает дату документа основания
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string OR \YooKassa\Model\Receipt\Datetime | value | Дата документа основания |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \Exception | |
+
+**Returns:** mixed -
+
+
+
+#### public setDocumentNumber() : mixed
+
+```php
+public setDocumentNumber(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает номер нормативного акта федерального органа исполнительной власти
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Номер нормативного акта федерального органа исполнительной власти |
+
+**Returns:** mixed -
+
+
+
+#### public setFederalId() : mixed
+
+```php
+public setFederalId(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает идентификатор федерального органа исполнительной власти
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Идентификатор федерального органа исполнительной власти |
+
+**Returns:** mixed -
+
+
+
+#### public setValue() : mixed
+
+```php
+public setValue(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение отраслевого реквизита
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Значение отраслевого реквизита |
+
+**Returns:** mixed -
+
+
+
+#### public toArray() : array
+
+```php
+public toArray() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+Является алиасом метода AbstractObject::jsonSerialize()
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### protected getUnknownProperties() : array
+
+```php
+protected getUnknownProperties() : array
+```
+
+**Summary**
+
+Возвращает массив свойств которые не существуют, но были заданы у объекта
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-MarkCodeInfo.md b/docs/classes/YooKassa-Model-Receipt-MarkCodeInfo.md
new file mode 100644
index 00000000..6752eb27
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-MarkCodeInfo.md
@@ -0,0 +1,970 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\MarkCodeInfo
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Class MarkCodeInfo
+
+**Description:**
+
+Код товара (тег в 54 ФЗ — 1163).
+Обязателен при использовании протокола ФФД 1.2, если товар нужно маркировать. Должно быть заполнено хотя бы одно из полей.
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [MIN_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MIN_LENGTH) | | |
+| public | [MAX_UNKNOWN_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_UNKNOWN_LENGTH) | | |
+| public | [MAX_EAN_8_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_EAN_8_LENGTH) | | |
+| public | [MAX_EAN_13_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_EAN_13_LENGTH) | | |
+| public | [MAX_ITF_14_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_ITF_14_LENGTH) | | |
+| public | [MAX_GS_10_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_GS_10_LENGTH) | | |
+| public | [MAX_GS_1M_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_GS_1M_LENGTH) | | |
+| public | [MAX_SHORT_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_SHORT_LENGTH) | | |
+| public | [MAX_FUR_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_FUR_LENGTH) | | |
+| public | [MAX_EGAIS_20_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_EGAIS_20_LENGTH) | | |
+| public | [MAX_EGAIS_30_LENGTH](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#constant_MAX_EGAIS_30_LENGTH) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [$ean_13](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_ean_13) | | Код товара в формате EAN-13 (тег в 54 ФЗ — 1302) |
+| public | [$ean_8](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_ean_8) | | Код товара в формате EAN-8 (тег в 54 ФЗ — 1301) |
+| public | [$egais_20](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_egais_20) | | Код товара в формате ЕГАИС-2.0 (тег в 54 ФЗ — 1308) |
+| public | [$egais_30](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_egais_30) | | Код товара в формате ЕГАИС-3.0 (тег в 54 ФЗ — 1309) |
+| public | [$fur](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_fur) | | Контрольно-идентификационный знак мехового изделия (тег в 54 ФЗ — 1307) |
+| public | [$gs_10](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_gs_10) | | Код товара в формате GS1.0 (тег в 54 ФЗ — 1304) |
+| public | [$gs_1m](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_gs_1m) | | Код товара в формате GS1.M (тег в 54 ФЗ — 1305) |
+| public | [$itf_14](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_itf_14) | | Код товара в формате ITF-14 (тег в 54 ФЗ — 1303) |
+| public | [$mark_code_raw](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_mark_code_raw) | | Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000) |
+| public | [$markCodeRaw](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_markCodeRaw) | | Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000) |
+| public | [$short](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_short) | | Код товара в формате короткого кода маркировки (тег в 54 ФЗ — 1306) |
+| public | [$unknown](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#property_unknown) | | Нераспознанный код товара (тег в 54 ФЗ — 1300) |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
+| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
+| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
+| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
+| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
+| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getEan13()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getEan13) | | |
+| public | [getEan8()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getEan8) | | |
+| public | [getEgais20()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getEgais20) | | |
+| public | [getEgais30()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getEgais30) | | |
+| public | [getFur()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getFur) | | |
+| public | [getGs10()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getGs10) | | |
+| public | [getGs1m()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getGs1m) | | |
+| public | [getItf14()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getItf14) | | |
+| public | [getMarkCodeRaw()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getMarkCodeRaw) | | Возвращает исходный код товара |
+| public | [getShort()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getShort) | | |
+| public | [getUnknown()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_getUnknown) | | |
+| public | [jsonSerialize()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации |
+| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства |
+| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
+| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
+| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setEan13()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setEan13) | | |
+| public | [setEan8()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setEan8) | | |
+| public | [setEgais20()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setEgais20) | | |
+| public | [setEgais30()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setEgais30) | | |
+| public | [setFur()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setFur) | | |
+| public | [setGs10()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setGs10) | | |
+| public | [setGs1m()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setGs1m) | | |
+| public | [setItf14()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setItf14) | | |
+| public | [setMarkCodeRaw()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setMarkCodeRaw) | | Устанавливает исходный код товара |
+| public | [setShort()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setShort) | | |
+| public | [setUnknown()](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md#method_setUnknown) | | |
+| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
+| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
+
+---
+### Details
+* File: [lib/Model/Receipt/MarkCodeInfo.php](../../lib/Model/Receipt/MarkCodeInfo.php)
+* Package: YooKassa
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+ * \YooKassa\Model\Receipt\MarkCodeInfo
+
+---
+## Constants
+
+###### MIN_LENGTH
+```php
+MIN_LENGTH = 1 : int
+```
+
+
+
+###### MAX_UNKNOWN_LENGTH
+```php
+MAX_UNKNOWN_LENGTH = 32 : int
+```
+
+
+
+###### MAX_EAN_8_LENGTH
+```php
+MAX_EAN_8_LENGTH = 8 : int
+```
+
+
+
+###### MAX_EAN_13_LENGTH
+```php
+MAX_EAN_13_LENGTH = 13 : int
+```
+
+
+
+###### MAX_ITF_14_LENGTH
+```php
+MAX_ITF_14_LENGTH = 14 : int
+```
+
+
+
+###### MAX_GS_10_LENGTH
+```php
+MAX_GS_10_LENGTH = 38 : int
+```
+
+
+
+###### MAX_GS_1M_LENGTH
+```php
+MAX_GS_1M_LENGTH = 150 : int
+```
+
+
+
+###### MAX_SHORT_LENGTH
+```php
+MAX_SHORT_LENGTH = 38 : int
+```
+
+
+
+###### MAX_FUR_LENGTH
+```php
+MAX_FUR_LENGTH = 20 : int
+```
+
+
+
+###### MAX_EGAIS_20_LENGTH
+```php
+MAX_EGAIS_20_LENGTH = 33 : int
+```
+
+
+
+###### MAX_EGAIS_30_LENGTH
+```php
+MAX_EGAIS_30_LENGTH = 14 : int
+```
+
+
+
+---
+## Properties
+
+#### public $ean_13 : string
+---
+***Description***
+
+Код товара в формате EAN-13 (тег в 54 ФЗ — 1302)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $ean_8 : string
+---
+***Description***
+
+Код товара в формате EAN-8 (тег в 54 ФЗ — 1301)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $egais_20 : string
+---
+***Description***
+
+Код товара в формате ЕГАИС-2.0 (тег в 54 ФЗ — 1308)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $egais_30 : string
+---
+***Description***
+
+Код товара в формате ЕГАИС-3.0 (тег в 54 ФЗ — 1309)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $fur : string
+---
+***Description***
+
+Контрольно-идентификационный знак мехового изделия (тег в 54 ФЗ — 1307)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $gs_10 : string
+---
+***Description***
+
+Код товара в формате GS1.0 (тег в 54 ФЗ — 1304)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $gs_1m : string
+---
+***Description***
+
+Код товара в формате GS1.M (тег в 54 ФЗ — 1305)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $itf_14 : string
+---
+***Description***
+
+Код товара в формате ITF-14 (тег в 54 ФЗ — 1303)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $mark_code_raw : string
+---
+***Description***
+
+Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $markCodeRaw : string
+---
+***Description***
+
+Код товара в том виде, в котором он был прочитан сканером (тег в 54 ФЗ — 2000)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $short : string
+---
+***Description***
+
+Код товара в формате короткого кода маркировки (тег в 54 ФЗ — 1306)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $unknown : string
+---
+***Description***
+
+Нераспознанный код товара (тег в 54 ФЗ — 1300)
+
+**Type:** string
+
+**Details:**
+
+
+
+---
+## Methods
+
+#### public __construct() : mixed
+
+```php
+public __construct(array $data = array()) : mixed
+```
+
+**Summary**
+
+AbstractObject constructor.
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array | data | |
+
+**Returns:** mixed -
+
+
+
+#### public __get() : mixed
+
+```php
+public __get(string $propertyName) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public __isset() : bool
+
+```php
+public __isset(string $propertyName) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public __set() : mixed
+
+```php
+public __set(string $propertyName, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public __unset() : mixed
+
+```php
+public __unset(string $propertyName) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public fromArray() : mixed
+
+```php
+public fromArray(array|\Traversable $sourceArray) : mixed
+```
+
+**Summary**
+
+Устанавливает значения свойств текущего объекта из массива
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
+
+**Returns:** mixed -
+
+
+
+#### public getEan13() : string
+
+```php
+public getEan13() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getEan8() : string
+
+```php
+public getEan8() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getEgais20() : string
+
+```php
+public getEgais20() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getEgais30() : string
+
+```php
+public getEgais30() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getFur() : string
+
+```php
+public getFur() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getGs10() : string
+
+```php
+public getGs10() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getGs1m() : string
+
+```php
+public getGs1m() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getItf14() : string
+
+```php
+public getItf14() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getMarkCodeRaw() : string
+
+```php
+public getMarkCodeRaw() : string
+```
+
+**Summary**
+
+Возвращает исходный код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string - Исходный код товара
+
+
+
+#### public getShort() : string
+
+```php
+public getShort() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public getUnknown() : string
+
+```php
+public getUnknown() : string
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** string -
+
+
+
+#### public jsonSerialize() : array
+
+```php
+public jsonSerialize() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+**Returns:** array -
+
+##### Tags
+| Tag | Version | Description |
+| --- | ------- | ----------- |
+| inheritdoc | | |
+
+
+#### public offsetExists() : bool
+
+```php
+public offsetExists(string $offset) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public offsetGet() : mixed
+
+```php
+public offsetGet(string $offset) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public offsetSet() : mixed
+
+```php
+public offsetSet(string $offset, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public offsetUnset() : mixed
+
+```php
+public offsetUnset(string $offset) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public setEan13() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setEan13(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setEan8() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setEan8(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setEgais20() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setEgais20($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setEgais30() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setEgais30($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setFur() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setFur($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setGs10() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setGs10(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setGs1m() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setGs1m($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setItf14() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setItf14(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setMarkCodeRaw() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setMarkCodeRaw(string $value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Summary**
+
+Устанавливает исходный код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Исходный код товара |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setShort() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setShort($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public setUnknown() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public setUnknown($value) : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| | value | |
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo -
+
+
+
+#### public toArray() : array
+
+```php
+public toArray() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+Является алиасом метода AbstractObject::jsonSerialize()
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### protected getUnknownProperties() : array
+
+```php
+protected getUnknownProperties() : array
+```
+
+**Summary**
+
+Возвращает массив свойств которые не существуют, но были заданы у объекта
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-MarkQuantity.md b/docs/classes/YooKassa-Model-Receipt-MarkQuantity.md
new file mode 100644
index 00000000..5f42bdb6
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-MarkQuantity.md
@@ -0,0 +1,466 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\MarkQuantity
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Class MarkQuantity
+
+**Description:**
+
+Дробное количество маркированного товара
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [MIN_VALUE](../classes/YooKassa-Model-Receipt-MarkQuantity.md#constant_MIN_VALUE) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [$denominator](../classes/YooKassa-Model-Receipt-MarkQuantity.md#property_denominator) | | Знаменатель — общее количество товаров в потребительской упаковке (тег в 54 ФЗ — 1294) |
+| public | [$numerator](../classes/YooKassa-Model-Receipt-MarkQuantity.md#property_numerator) | | Числитель — количество продаваемых товаров из одной потребительской упаковки (тег в 54 ФЗ — 1293) |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
+| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
+| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
+| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
+| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
+| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getDenominator()](../classes/YooKassa-Model-Receipt-MarkQuantity.md#method_getDenominator) | | Возвращает знаменатель |
+| public | [getNumerator()](../classes/YooKassa-Model-Receipt-MarkQuantity.md#method_getNumerator) | | Возвращает числитель |
+| public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации |
+| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства |
+| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
+| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
+| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setDenominator()](../classes/YooKassa-Model-Receipt-MarkQuantity.md#method_setDenominator) | | Устанавливает знаменатель |
+| public | [setNumerator()](../classes/YooKassa-Model-Receipt-MarkQuantity.md#method_setNumerator) | | Устанавливает числитель |
+| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
+| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
+
+---
+### Details
+* File: [lib/Model/Receipt/MarkQuantity.php](../../lib/Model/Receipt/MarkQuantity.php)
+* Package: YooKassa
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+ * \YooKassa\Model\Receipt\MarkQuantity
+
+---
+## Constants
+
+###### MIN_VALUE
+```php
+MIN_VALUE = 1 : int
+```
+
+
+
+---
+## Properties
+
+#### public $denominator : string
+---
+***Description***
+
+Знаменатель — общее количество товаров в потребительской упаковке (тег в 54 ФЗ — 1294)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $numerator : string
+---
+***Description***
+
+Числитель — количество продаваемых товаров из одной потребительской упаковки (тег в 54 ФЗ — 1293)
+
+**Type:** string
+
+**Details:**
+
+
+
+---
+## Methods
+
+#### public __construct() : mixed
+
+```php
+public __construct(array $data = array()) : mixed
+```
+
+**Summary**
+
+AbstractObject constructor.
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array | data | |
+
+**Returns:** mixed -
+
+
+
+#### public __get() : mixed
+
+```php
+public __get(string $propertyName) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public __isset() : bool
+
+```php
+public __isset(string $propertyName) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public __set() : mixed
+
+```php
+public __set(string $propertyName, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public __unset() : mixed
+
+```php
+public __unset(string $propertyName) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public fromArray() : mixed
+
+```php
+public fromArray(array|\Traversable $sourceArray) : mixed
+```
+
+**Summary**
+
+Устанавливает значения свойств текущего объекта из массива
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
+
+**Returns:** mixed -
+
+
+
+#### public getDenominator() : int
+
+```php
+public getDenominator() : int
+```
+
+**Summary**
+
+Возвращает знаменатель
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkQuantity](../classes/YooKassa-Model-Receipt-MarkQuantity.md)
+
+**Returns:** int - Знаменатель
+
+
+
+#### public getNumerator() : int
+
+```php
+public getNumerator() : int
+```
+
+**Summary**
+
+Возвращает числитель
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkQuantity](../classes/YooKassa-Model-Receipt-MarkQuantity.md)
+
+**Returns:** int - Числитель
+
+
+
+#### public jsonSerialize() : array
+
+```php
+public jsonSerialize() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### public offsetExists() : bool
+
+```php
+public offsetExists(string $offset) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public offsetGet() : mixed
+
+```php
+public offsetGet(string $offset) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public offsetSet() : mixed
+
+```php
+public offsetSet(string $offset, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public offsetUnset() : mixed
+
+```php
+public offsetUnset(string $offset) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public setDenominator() : mixed
+
+```php
+public setDenominator(int $value) : mixed
+```
+
+**Summary**
+
+Устанавливает знаменатель
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkQuantity](../classes/YooKassa-Model-Receipt-MarkQuantity.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| int | value | Знаменатель |
+
+**Returns:** mixed -
+
+
+
+#### public setNumerator() : mixed
+
+```php
+public setNumerator(int $value) : mixed
+```
+
+**Summary**
+
+Устанавливает числитель
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\MarkQuantity](../classes/YooKassa-Model-Receipt-MarkQuantity.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| int | value | Числитель |
+
+**Returns:** mixed -
+
+
+
+#### public toArray() : array
+
+```php
+public toArray() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+Является алиасом метода AbstractObject::jsonSerialize()
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### protected getUnknownProperties() : array
+
+```php
+protected getUnknownProperties() : array
+```
+
+**Summary**
+
+Возвращает массив свойств которые не существуют, но были заданы у объекта
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-OperationalDetails.md b/docs/classes/YooKassa-Model-Receipt-OperationalDetails.md
new file mode 100644
index 00000000..0c446bb5
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-OperationalDetails.md
@@ -0,0 +1,571 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\OperationalDetails
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Class OperationalDetails
+
+**Description:**
+
+Данные операционного реквизита чека
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [OPERATION_ID_MAX_LENGTH](../classes/YooKassa-Model-Receipt-OperationalDetails.md#constant_OPERATION_ID_MAX_LENGTH) | | |
+| public | [VALUE_MAX_LENGTH](../classes/YooKassa-Model-Receipt-OperationalDetails.md#constant_VALUE_MAX_LENGTH) | | |
+| public | [DATE_FORMAT](../classes/YooKassa-Model-Receipt-OperationalDetails.md#constant_DATE_FORMAT) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [$created_at](../classes/YooKassa-Model-Receipt-OperationalDetails.md#property_created_at) | | Время создания операции (тег в 54 ФЗ — 1273) |
+| public | [$createdAt](../classes/YooKassa-Model-Receipt-OperationalDetails.md#property_createdAt) | | Время создания операции (тег в 54 ФЗ — 1273) |
+| public | [$operation_id](../classes/YooKassa-Model-Receipt-OperationalDetails.md#property_operation_id) | | Идентификатор операции (тег в 54 ФЗ — 1271) |
+| public | [$operationId](../classes/YooKassa-Model-Receipt-OperationalDetails.md#property_operationId) | | Идентификатор операции (тег в 54 ФЗ — 1271) |
+| public | [$value](../classes/YooKassa-Model-Receipt-OperationalDetails.md#property_value) | | Данные операции (тег в 54 ФЗ — 1272) |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. |
+| public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства |
+| public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства |
+| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
+| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
+| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getCreatedAt()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_getCreatedAt) | | Возвращает время создания операции |
+| public | [getOperationId()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_getOperationId) | | Возвращает идентификатор операции |
+| public | [getValue()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_getValue) | | Возвращает данные операции |
+| public | [jsonSerialize()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации |
+| public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства |
+| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
+| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
+| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setCreatedAt()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_setCreatedAt) | | Устанавливает время создания операции |
+| public | [setOperationId()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_setOperationId) | | Устанавливает идентификатор операции |
+| public | [setValue()](../classes/YooKassa-Model-Receipt-OperationalDetails.md#method_setValue) | | Устанавливает данные операции |
+| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
+| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта |
+
+---
+### Details
+* File: [lib/Model/Receipt/OperationalDetails.php](../../lib/Model/Receipt/OperationalDetails.php)
+* Package: YooKassa
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+ * \YooKassa\Model\Receipt\OperationalDetails
+
+---
+## Constants
+
+###### OPERATION_ID_MAX_LENGTH
+```php
+OPERATION_ID_MAX_LENGTH = 256 : int
+```
+
+
+
+###### VALUE_MAX_LENGTH
+```php
+VALUE_MAX_LENGTH = 64 : int
+```
+
+
+
+###### DATE_FORMAT
+```php
+DATE_FORMAT = "Y-m-d\TH:i:s.uO" : string
+```
+
+
+
+---
+## Properties
+
+#### public $created_at : \YooKassa\Model\Receipt\Datetime
+---
+***Description***
+
+Время создания операции (тег в 54 ФЗ — 1273)
+
+**Type:** \YooKassa\Model\Receipt\Datetime
+
+**Details:**
+
+
+
+#### public $createdAt : \YooKassa\Model\Receipt\Datetime
+---
+***Description***
+
+Время создания операции (тег в 54 ФЗ — 1273)
+
+**Type:** \YooKassa\Model\Receipt\Datetime
+
+**Details:**
+
+
+
+#### public $operation_id : string
+---
+***Description***
+
+Идентификатор операции (тег в 54 ФЗ — 1271)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $operationId : string
+---
+***Description***
+
+Идентификатор операции (тег в 54 ФЗ — 1271)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $value : string
+---
+***Description***
+
+Данные операции (тег в 54 ФЗ — 1272)
+
+**Type:** string
+
+**Details:**
+
+
+
+---
+## Methods
+
+#### public __construct() : mixed
+
+```php
+public __construct(array $data = array()) : mixed
+```
+
+**Summary**
+
+AbstractObject constructor.
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array | data | |
+
+**Returns:** mixed -
+
+
+
+#### public __get() : mixed
+
+```php
+public __get(string $propertyName) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public __isset() : bool
+
+```php
+public __isset(string $propertyName) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public __set() : mixed
+
+```php
+public __set(string $propertyName, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public __unset() : mixed
+
+```php
+public __unset(string $propertyName) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | propertyName | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public fromArray() : mixed
+
+```php
+public fromArray(array|\Traversable $sourceArray) : mixed
+```
+
+**Summary**
+
+Устанавливает значения свойств текущего объекта из массива
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
+
+**Returns:** mixed -
+
+
+
+#### public getCreatedAt() : \YooKassa\Model\Receipt\Datetime
+
+```php
+public getCreatedAt() : \YooKassa\Model\Receipt\Datetime
+```
+
+**Summary**
+
+Возвращает время создания операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+**Returns:** \YooKassa\Model\Receipt\Datetime - Время создания операции
+
+
+
+#### public getOperationId() : string
+
+```php
+public getOperationId() : string
+```
+
+**Summary**
+
+Возвращает идентификатор операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+**Returns:** string - Идентификатор операции
+
+
+
+#### public getValue() : string
+
+```php
+public getValue() : string
+```
+
+**Summary**
+
+Возвращает данные операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+**Returns:** string - Данные операции
+
+
+
+#### public jsonSerialize() : array
+
+```php
+public jsonSerialize() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+**Returns:** array -
+
+##### Tags
+| Tag | Version | Description |
+| --- | ------- | ----------- |
+| inheritdoc | | |
+
+
+#### public offsetExists() : bool
+
+```php
+public offsetExists(string $offset) : bool
+```
+
+**Summary**
+
+Проверяет наличие свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя проверяемого свойства |
+
+**Returns:** bool - True если свойство имеется, false если нет
+
+
+
+#### public offsetGet() : mixed
+
+```php
+public offsetGet(string $offset) : mixed
+```
+
+**Summary**
+
+Возвращает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+
+**Returns:** mixed - Значение свойства
+
+
+
+#### public offsetSet() : mixed
+
+```php
+public offsetSet(string $offset, mixed $value) : mixed
+```
+
+**Summary**
+
+Устанавливает значение свойства
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя свойства |
+| mixed | value | Значение свойства |
+
+**Returns:** mixed -
+
+
+
+#### public offsetUnset() : mixed
+
+```php
+public offsetUnset(string $offset) : mixed
+```
+
+**Summary**
+
+Удаляет свойство
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | offset | Имя удаляемого свойства |
+
+**Returns:** mixed -
+
+
+
+#### public setCreatedAt() : mixed
+
+```php
+public setCreatedAt(string|\YooKassa\Model\Receipt\Datetime $value) : mixed
+```
+
+**Summary**
+
+Устанавливает время создания операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string OR \YooKassa\Model\Receipt\Datetime | value | Время создания операции |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \Exception | |
+
+**Returns:** mixed -
+
+
+
+#### public setOperationId() : mixed
+
+```php
+public setOperationId(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает идентификатор операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Идентификатор операции |
+
+**Returns:** mixed -
+
+
+
+#### public setValue() : mixed
+
+```php
+public setValue(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает данные операции
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Данные операции |
+
+**Returns:** mixed -
+
+
+
+#### public toArray() : array
+
+```php
+public toArray() : array
+```
+
+**Summary**
+
+Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
+Является алиасом метода AbstractObject::jsonSerialize()
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив со свойствами текущего объекта
+
+
+
+#### protected getUnknownProperties() : array
+
+```php
+protected getUnknownProperties() : array
+```
+
+**Summary**
+
+Возвращает массив свойств которые не существуют, но были заданы у объекта
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
+
+**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-PaymentMode.md b/docs/classes/YooKassa-Model-Receipt-PaymentMode.md
index 8251bb0e..b6b4bf0b 100644
--- a/docs/classes/YooKassa-Model-Receipt-PaymentMode.md
+++ b/docs/classes/YooKassa-Model-Receipt-PaymentMode.md
@@ -5,7 +5,7 @@
---
**Summary:**
-Базовый класс генерируемых enum'ов
+Признак способа расчета передается в параметре `payment_mode`.
---
@@ -47,49 +47,49 @@
###### FULL_PREPAYMENT
```php
-FULL_PREPAYMENT = 'full_prepayment'
+FULL_PREPAYMENT = 'full_prepayment' : string
```
###### PARTIAL_PREPAYMENT
```php
-PARTIAL_PREPAYMENT = 'partial_prepayment'
+PARTIAL_PREPAYMENT = 'partial_prepayment' : string
```
###### ADVANCE
```php
-ADVANCE = 'advance'
+ADVANCE = 'advance' : string
```
###### FULL_PAYMENT
```php
-FULL_PAYMENT = 'full_payment'
+FULL_PAYMENT = 'full_payment' : string
```
###### PARTIAL_PAYMENT
```php
-PARTIAL_PAYMENT = 'partial_payment'
+PARTIAL_PAYMENT = 'partial_payment' : string
```
###### CREDIT
```php
-CREDIT = 'credit'
+CREDIT = 'credit' : string
```
###### CREDIT_PAYMENT
```php
-CREDIT_PAYMENT = 'credit_payment'
+CREDIT_PAYMENT = 'credit_payment' : string
```
@@ -179,6 +179,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-PaymentSubject.md b/docs/classes/YooKassa-Model-Receipt-PaymentSubject.md
index 0b761aae..64313d7b 100644
--- a/docs/classes/YooKassa-Model-Receipt-PaymentSubject.md
+++ b/docs/classes/YooKassa-Model-Receipt-PaymentSubject.md
@@ -5,7 +5,7 @@
---
**Summary:**
-Базовый класс генерируемых enum'ов
+Признак предмета расчета передается в параметре `payment_subject`.
---
@@ -30,6 +30,21 @@
| public | [RESORT_FEE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_RESORT_FEE) | | |
| public | [COMPOSITE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_COMPOSITE) | | |
| public | [ANOTHER](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_ANOTHER) | | |
+| public | [FINE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_FINE) | | |
+| public | [TAX](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_TAX) | | |
+| public | [LIEN](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_LIEN) | | |
+| public | [COST](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_COST) | | |
+| public | [PENSION_INSURANCE_WITHOUT_PAYOUTS](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_PENSION_INSURANCE_WITHOUT_PAYOUTS) | | |
+| public | [PENSION_INSURANCE_WITH_PAYOUTS](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_PENSION_INSURANCE_WITH_PAYOUTS) | | |
+| public | [HEALTH_INSURANCE_WITHOUT_PAYOUTS](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_HEALTH_INSURANCE_WITHOUT_PAYOUTS) | | |
+| public | [HEALTH_INSURANCE_WITH_PAYOUTS](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_HEALTH_INSURANCE_WITH_PAYOUTS) | | |
+| public | [HEALTH_INSURANCE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_HEALTH_INSURANCE) | | |
+| public | [CASINO](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_CASINO) | | |
+| public | [AGENT_WITHDRAWALS](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_AGENT_WITHDRAWALS) | | |
+| public | [NON_MARKED_EXCISE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_NON_MARKED_EXCISE) | | |
+| public | [MARKED_EXCISE](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_MARKED_EXCISE) | | |
+| public | [MARKED](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_MARKED) | | |
+| public | [NON_MARKED](../classes/YooKassa-Model-Receipt-PaymentSubject.md#constant_NON_MARKED) | | |
---
### Properties
@@ -58,126 +73,231 @@
###### COMMODITY
```php
-COMMODITY = 'commodity'
+COMMODITY = 'commodity' : string
```
###### EXCISE
```php
-EXCISE = 'excise'
+EXCISE = 'excise' : string
```
###### JOB
```php
-JOB = 'job'
+JOB = 'job' : string
```
###### SERVICE
```php
-SERVICE = 'service'
+SERVICE = 'service' : string
```
###### GAMBLING_BET
```php
-GAMBLING_BET = 'gambling_bet'
+GAMBLING_BET = 'gambling_bet' : string
```
###### GAMBLING_PRIZE
```php
-GAMBLING_PRIZE = 'gambling_prize'
+GAMBLING_PRIZE = 'gambling_prize' : string
```
###### LOTTERY
```php
-LOTTERY = 'lottery'
+LOTTERY = 'lottery' : string
```
###### LOTTERY_PRIZE
```php
-LOTTERY_PRIZE = 'lottery_prize'
+LOTTERY_PRIZE = 'lottery_prize' : string
```
###### INTELLECTUAL_ACTIVITY
```php
-INTELLECTUAL_ACTIVITY = 'intellectual_activity'
+INTELLECTUAL_ACTIVITY = 'intellectual_activity' : string
```
###### PAYMENT
```php
-PAYMENT = 'payment'
+PAYMENT = 'payment' : string
```
###### AGENT_COMMISSION
```php
-AGENT_COMMISSION = 'agent_commission'
+AGENT_COMMISSION = 'agent_commission' : string
```
###### PROPERTY_RIGHT
```php
-PROPERTY_RIGHT = 'property_right'
+PROPERTY_RIGHT = 'property_right' : string
```
###### NON_OPERATING_GAIN
```php
-NON_OPERATING_GAIN = 'non_operating_gain'
+NON_OPERATING_GAIN = 'non_operating_gain' : string
```
###### INSURANCE_PREMIUM
```php
-INSURANCE_PREMIUM = 'insurance_premium'
+INSURANCE_PREMIUM = 'insurance_premium' : string
```
###### SALES_TAX
```php
-SALES_TAX = 'sales_tax'
+SALES_TAX = 'sales_tax' : string
```
###### RESORT_FEE
```php
-RESORT_FEE = 'resort_fee'
+RESORT_FEE = 'resort_fee' : string
```
###### COMPOSITE
```php
-COMPOSITE = 'composite'
+COMPOSITE = 'composite' : string
```
###### ANOTHER
```php
-ANOTHER = 'another'
+ANOTHER = 'another' : string
+```
+
+
+
+###### FINE
+```php
+FINE = 'fine' : string
+```
+
+
+
+###### TAX
+```php
+TAX = 'tax' : string
+```
+
+
+
+###### LIEN
+```php
+LIEN = 'lien' : string
+```
+
+
+
+###### COST
+```php
+COST = 'cost' : string
+```
+
+
+
+###### PENSION_INSURANCE_WITHOUT_PAYOUTS
+```php
+PENSION_INSURANCE_WITHOUT_PAYOUTS = 'pension_insurance_without_payouts' : string
+```
+
+
+
+###### PENSION_INSURANCE_WITH_PAYOUTS
+```php
+PENSION_INSURANCE_WITH_PAYOUTS = 'pension_insurance_with_payouts' : string
+```
+
+
+
+###### HEALTH_INSURANCE_WITHOUT_PAYOUTS
+```php
+HEALTH_INSURANCE_WITHOUT_PAYOUTS = 'health_insurance_without_payouts' : string
+```
+
+
+
+###### HEALTH_INSURANCE_WITH_PAYOUTS
+```php
+HEALTH_INSURANCE_WITH_PAYOUTS = 'health_insurance_with_payouts' : string
+```
+
+
+
+###### HEALTH_INSURANCE
+```php
+HEALTH_INSURANCE = 'health_insurance' : string
+```
+
+
+
+###### CASINO
+```php
+CASINO = 'casino' : string
+```
+
+
+
+###### AGENT_WITHDRAWALS
+```php
+AGENT_WITHDRAWALS = 'agent_withdrawals' : string
+```
+
+
+
+###### NON_MARKED_EXCISE
+```php
+NON_MARKED_EXCISE = 'non_marked_excise' : string
+```
+
+
+
+###### MARKED_EXCISE
+```php
+MARKED_EXCISE = 'marked_excise' : string
+```
+
+
+
+###### MARKED
+```php
+MARKED = 'marked' : string
+```
+
+
+
+###### NON_MARKED
+```php
+NON_MARKED = 'non_marked' : string
```
@@ -267,6 +387,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-ReceiptItemAmount.md b/docs/classes/YooKassa-Model-Receipt-ReceiptItemAmount.md
index 5e30575c..a38d16ab 100644
--- a/docs/classes/YooKassa-Model-Receipt-ReceiptItemAmount.md
+++ b/docs/classes/YooKassa-Model-Receipt-ReceiptItemAmount.md
@@ -538,6 +538,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md b/docs/classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md
new file mode 100644
index 00000000..4b612da8
--- /dev/null
+++ b/docs/classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md
@@ -0,0 +1,323 @@
+# [YooKassa API SDK](../home.md)
+
+# Class: \YooKassa\Model\Receipt\ReceiptItemMeasure
+### Namespace: [\YooKassa\Model\Receipt](../namespaces/yookassa-model-receipt.md)
+---
+**Summary:**
+
+Мера количества предмета расчета передается в массиве `items`, в параметре `measure`.
+
+**Description:**
+
+Параметр нужно передавать, начиная с ФФД 1.2.
+
+---
+### Constants
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [PIECE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_PIECE) | | |
+| public | [GRAM](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_GRAM) | | |
+| public | [KILOGRAM](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_KILOGRAM) | | |
+| public | [TON](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_TON) | | |
+| public | [CENTIMETER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_CENTIMETER) | | |
+| public | [DECIMETER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_DECIMETER) | | |
+| public | [METER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_METER) | | |
+| public | [SQUARE_CENTIMETER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_SQUARE_CENTIMETER) | | |
+| public | [SQUARE_DECIMETER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_SQUARE_DECIMETER) | | |
+| public | [SQUARE_METER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_SQUARE_METER) | | |
+| public | [MILLILITER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_MILLILITER) | | |
+| public | [LITER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_LITER) | | |
+| public | [CUBIC_METER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_CUBIC_METER) | | |
+| public | [KILOWATT_HOUR](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_KILOWATT_HOUR) | | |
+| public | [GIGACALORIE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_GIGACALORIE) | | |
+| public | [DAY](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_DAY) | | |
+| public | [HOUR](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_HOUR) | | |
+| public | [MINUTE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_MINUTE) | | |
+| public | [SECOND](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_SECOND) | | |
+| public | [KILOBYTE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_KILOBYTE) | | |
+| public | [MEGABYTE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_MEGABYTE) | | |
+| public | [GIGABYTE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_GIGABYTE) | | |
+| public | [TERABYTE](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_TERABYTE) | | |
+| public | [ANOTHER](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#constant_ANOTHER) | | |
+
+---
+### Properties
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| protected | [$validValues](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md#property_validValues) | | |
+
+---
+### Methods
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [getEnabledValues()](../classes/YooKassa-Common-AbstractEnum.md#method_getEnabledValues) | | Возвращает значения в enum'е значения которых разрешены |
+| public | [getValidValues()](../classes/YooKassa-Common-AbstractEnum.md#method_getValidValues) | | Возвращает все значения в enum'e |
+| public | [valueExists()](../classes/YooKassa-Common-AbstractEnum.md#method_valueExists) | | Проверяет наличие значения в enum'e |
+
+---
+### Details
+* File: [lib/Model/Receipt/ReceiptItemMeasure.php](../../lib/Model/Receipt/ReceiptItemMeasure.php)
+* Package: Default
+* Class Hierarchy:
+ * [\YooKassa\Common\AbstractEnum](../classes/YooKassa-Common-AbstractEnum.md)
+ * \YooKassa\Model\Receipt\ReceiptItemMeasure
+
+---
+## Constants
+
+###### PIECE
+```php
+PIECE = 'piece' : string
+```
+
+
+
+###### GRAM
+```php
+GRAM = 'gram' : string
+```
+
+
+
+###### KILOGRAM
+```php
+KILOGRAM = 'kilogram' : string
+```
+
+
+
+###### TON
+```php
+TON = 'ton' : string
+```
+
+
+
+###### CENTIMETER
+```php
+CENTIMETER = 'centimeter' : string
+```
+
+
+
+###### DECIMETER
+```php
+DECIMETER = 'decimeter' : string
+```
+
+
+
+###### METER
+```php
+METER = 'meter' : string
+```
+
+
+
+###### SQUARE_CENTIMETER
+```php
+SQUARE_CENTIMETER = 'square_centimeter' : string
+```
+
+
+
+###### SQUARE_DECIMETER
+```php
+SQUARE_DECIMETER = 'square_decimeter' : string
+```
+
+
+
+###### SQUARE_METER
+```php
+SQUARE_METER = 'square_meter' : string
+```
+
+
+
+###### MILLILITER
+```php
+MILLILITER = 'milliliter' : string
+```
+
+
+
+###### LITER
+```php
+LITER = 'liter' : string
+```
+
+
+
+###### CUBIC_METER
+```php
+CUBIC_METER = 'cubic_meter' : string
+```
+
+
+
+###### KILOWATT_HOUR
+```php
+KILOWATT_HOUR = 'kilowatt_hour' : string
+```
+
+
+
+###### GIGACALORIE
+```php
+GIGACALORIE = 'gigacalorie' : string
+```
+
+
+
+###### DAY
+```php
+DAY = 'day' : string
+```
+
+
+
+###### HOUR
+```php
+HOUR = 'hour' : string
+```
+
+
+
+###### MINUTE
+```php
+MINUTE = 'minute' : string
+```
+
+
+
+###### SECOND
+```php
+SECOND = 'second' : string
+```
+
+
+
+###### KILOBYTE
+```php
+KILOBYTE = 'kilobyte' : string
+```
+
+
+
+###### MEGABYTE
+```php
+MEGABYTE = 'megabyte' : string
+```
+
+
+
+###### GIGABYTE
+```php
+GIGABYTE = 'gigabyte' : string
+```
+
+
+
+###### TERABYTE
+```php
+TERABYTE = 'terabyte' : string
+```
+
+
+
+###### ANOTHER
+```php
+ANOTHER = 'another' : string
+```
+
+
+
+---
+## Properties
+
+#### protected $validValues : array
+---
+**Type:** array
+Массив принимаемых enum'ом значений
+**Details:**
+
+
+
+---
+## Methods
+
+#### public getEnabledValues() : string[]
+
+```php
+Static public getEnabledValues() : string[]
+```
+
+**Summary**
+
+Возвращает значения в enum'е значения которых разрешены
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractEnum](../classes/YooKassa-Common-AbstractEnum.md)
+
+**Returns:** string[] - Массив разрешённых значений
+
+
+
+#### public getValidValues() : array
+
+```php
+Static public getValidValues() : array
+```
+
+**Summary**
+
+Возвращает все значения в enum'e
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractEnum](../classes/YooKassa-Common-AbstractEnum.md)
+
+**Returns:** array - Массив значений в перечислении
+
+
+
+#### public valueExists() : bool
+
+```php
+Static public valueExists(mixed $value) : bool
+```
+
+**Summary**
+
+Проверяет наличие значения в enum'e
+
+**Details:**
+* Inherited From: [\YooKassa\Common\AbstractEnum](../classes/YooKassa-Common-AbstractEnum.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| mixed | value | Проверяемое значение |
+
+**Returns:** bool - True если значение имеется, false если нет
+
+
+
+---
+
+### Top Namespaces
+
+* [\YooKassa](../namespaces/yookassa.md)
+
+---
+
+### Reports
+* [Errors - 0](../reports/errors.md)
+* [Markers - 0](../reports/markers.md)
+* [Deprecated - 13](../reports/deprecated.md)
+
+---
+
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
+
+© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt-SettlementType.md b/docs/classes/YooKassa-Model-Receipt-SettlementType.md
index 5143861e..4d891b39 100644
--- a/docs/classes/YooKassa-Model-Receipt-SettlementType.md
+++ b/docs/classes/YooKassa-Model-Receipt-SettlementType.md
@@ -155,6 +155,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Receipt.md b/docs/classes/YooKassa-Model-Receipt.md
index 27a9bcae..1713a2d7 100644
--- a/docs/classes/YooKassa-Model-Receipt.md
+++ b/docs/classes/YooKassa-Model-Receipt.md
@@ -16,8 +16,14 @@
### Properties
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
+| public | [$additional_user_props](../classes/YooKassa-Model-Receipt.md#property_additional_user_props) | | Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084) |
+| public | [$additionalUserProps](../classes/YooKassa-Model-Receipt.md#property_additionalUserProps) | | Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084) |
| public | [$customer](../classes/YooKassa-Model-Receipt.md#property_customer) | | Информация о плательщике |
| public | [$items](../classes/YooKassa-Model-Receipt.md#property_items) | | Список товаров в заказе |
+| public | [$receipt_industry_details](../classes/YooKassa-Model-Receipt.md#property_receipt_industry_details) | | Отраслевой реквизит чека (тег в 54 ФЗ — 1261) |
+| public | [$receipt_operational_details](../classes/YooKassa-Model-Receipt.md#property_receipt_operational_details) | | Операционный реквизит чека (тег в 54 ФЗ — 1270) |
+| public | [$receiptIndustryDetails](../classes/YooKassa-Model-Receipt.md#property_receiptIndustryDetails) | | Отраслевой реквизит чека (тег в 54 ФЗ — 1261) |
+| public | [$receiptOperationalDetails](../classes/YooKassa-Model-Receipt.md#property_receiptOperationalDetails) | | Операционный реквизит чека (тег в 54 ФЗ — 1270) |
| public | [$settlements](../classes/YooKassa-Model-Receipt.md#property_settlements) | | Массив оплат, обеспечивающих выдачу товара |
| public | [$tax_system_code](../classes/YooKassa-Model-Receipt.md#property_tax_system_code) | | Код системы налогообложения. Число 1-6. |
| public | [$taxSystemCode](../classes/YooKassa-Model-Receipt.md#property_taxSystemCode) | | Код системы налогообложения. Число 1-6. |
@@ -34,12 +40,15 @@
| public | [addItem()](../classes/YooKassa-Model-Receipt.md#method_addItem) | | Добавляет товар в чек |
| public | [addSettlement()](../classes/YooKassa-Model-Receipt.md#method_addSettlement) | | Добавляет оплату в чек |
| public | [fromArray()](../classes/YooKassa-Model-Receipt.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getAdditionalUserProps()](../classes/YooKassa-Model-Receipt.md#method_getAdditionalUserProps) | | Возвращает дополнительный реквизит пользователя |
| public | [getAmountValue()](../classes/YooKassa-Model-Receipt.md#method_getAmountValue) | | Возвращает стоимость заказа исходя из состава чека |
| public | [getCustomer()](../classes/YooKassa-Model-Receipt.md#method_getCustomer) | | Возвращает информацию о плательщике |
| public | [getEmail()](../classes/YooKassa-Model-Receipt.md#method_getEmail) | *deprecated* | Возвращает адрес электронной почты на который будет выслан чек |
| public | [getItems()](../classes/YooKassa-Model-Receipt.md#method_getItems) | | Возвращает список позиций в текущем чеке |
| public | [getObjectId()](../classes/YooKassa-Model-Receipt.md#method_getObjectId) | | Возвращает Id объекта чека |
| public | [getPhone()](../classes/YooKassa-Model-Receipt.md#method_getPhone) | *deprecated* | Возвращает номер телефона плательщика в формате ITU-T E.164 на который будет выслан чек |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Model-Receipt.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Model-Receipt.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getSettlements()](../classes/YooKassa-Model-Receipt.md#method_getSettlements) | | Возвращает массив оплат, обеспечивающих выдачу товара |
| public | [getShippingAmountValue()](../classes/YooKassa-Model-Receipt.md#method_getShippingAmountValue) | | Возвращает стоимость доставки исходя из состава чека |
| public | [getTaxSystemCode()](../classes/YooKassa-Model-Receipt.md#method_getTaxSystemCode) | | Возвращает код системы налогообложения |
@@ -50,10 +59,13 @@
| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setAdditionalUserProps()](../classes/YooKassa-Model-Receipt.md#method_setAdditionalUserProps) | | Устанавливает дополнительный реквизит пользователя |
| public | [setCustomer()](../classes/YooKassa-Model-Receipt.md#method_setCustomer) | | Устанавливает информацию о плательщике |
| public | [setEmail()](../classes/YooKassa-Model-Receipt.md#method_setEmail) | *deprecated* | Устанавливает адрес электронной почты на который будет выслан чек |
| public | [setItems()](../classes/YooKassa-Model-Receipt.md#method_setItems) | | Устанавливает список позиций в чеке |
| public | [setPhone()](../classes/YooKassa-Model-Receipt.md#method_setPhone) | *deprecated* | Устанавливает номер телефона плательщика в формате ITU-T E.164 на который будет выслан чек |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Model-Receipt.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Model-Receipt.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setSettlements()](../classes/YooKassa-Model-Receipt.md#method_setSettlements) | | Возвращает массив оплат, обеспечивающих выдачу товара |
| public | [setTaxSystemCode()](../classes/YooKassa-Model-Receipt.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения |
| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize() |
@@ -71,6 +83,30 @@
---
## Properties
+
+#### public $additional_user_props : \YooKassa\Model\Receipt\AdditionalUserProps
+---
+***Description***
+
+Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084)
+
+**Type:** AdditionalUserProps
+
+**Details:**
+
+
+
+#### public $additionalUserProps : \YooKassa\Model\Receipt\AdditionalUserProps
+---
+***Description***
+
+Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084)
+
+**Type:** AdditionalUserProps
+
+**Details:**
+
+
#### public $customer : \YooKassa\Model\ReceiptCustomer
---
@@ -95,6 +131,54 @@
**Details:**
+
+#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека (тег в 54 ФЗ — 1261)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
+
+#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека (тег в 54 ФЗ — 1270)
+
+**Type:** OperationalDetails
+
+**Details:**
+
+
+
+#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека (тег в 54 ФЗ — 1261)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
+
+#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека (тег в 54 ФЗ — 1270)
+
+**Type:** OperationalDetails
+
+**Details:**
+
+
#### public $settlements : \YooKassa\Model\SettlementInterface[]
---
@@ -311,6 +395,23 @@ public fromArray(array|\Traversable $sourceArray) : mixed
**Returns:** mixed -
+
+#### public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps
+
+```php
+public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps
+```
+
+**Summary**
+
+Возвращает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+**Returns:** \YooKassa\Model\Receipt\AdditionalUserProps - Дополнительный реквизит пользователя
+
+
#### public getAmountValue() : int
@@ -422,6 +523,40 @@ Deprecated since 1.3.0Устарел — данные рекомендуется
**Returns:** string - Номер телефона плательщика
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getSettlements() : \YooKassa\Model\SettlementInterface[]
@@ -619,6 +754,28 @@ public offsetUnset(string $offset) : mixed
**Returns:** mixed -
+
+#### public setAdditionalUserProps() : mixed
+
+```php
+public setAdditionalUserProps(\YooKassa\Model\Receipt\AdditionalUserProps|array $value) : mixed
+```
+
+**Summary**
+
+Устанавливает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| \YooKassa\Model\Receipt\AdditionalUserProps OR array | value | Дополнительный реквизит пользователя |
+
+**Returns:** mixed -
+
+
#### public setCustomer() : mixed
@@ -733,6 +890,60 @@ Deprecated since 1.3.0Устарел — данные рекомендуется
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\Receipt](../classes/YooKassa-Model-Receipt.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setSettlements() : mixed
@@ -834,6 +1045,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptCustomer.md b/docs/classes/YooKassa-Model-ReceiptCustomer.md
index 77e94f0d..3d86adf5 100644
--- a/docs/classes/YooKassa-Model-ReceiptCustomer.md
+++ b/docs/classes/YooKassa-Model-ReceiptCustomer.md
@@ -608,6 +608,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptCustomerInterface.md b/docs/classes/YooKassa-Model-ReceiptCustomerInterface.md
index ae1167a4..05e3af8f 100644
--- a/docs/classes/YooKassa-Model-ReceiptCustomerInterface.md
+++ b/docs/classes/YooKassa-Model-ReceiptCustomerInterface.md
@@ -140,6 +140,6 @@ public jsonSerialize() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptInterface.md b/docs/classes/YooKassa-Model-ReceiptInterface.md
index ce4d9b31..9c7b8734 100644
--- a/docs/classes/YooKassa-Model-ReceiptInterface.md
+++ b/docs/classes/YooKassa-Model-ReceiptInterface.md
@@ -181,6 +181,6 @@ public normalize(\YooKassa\Model\AmountInterface $orderAmount, bool $withShippin
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptItem.md b/docs/classes/YooKassa-Model-ReceiptItem.md
index 71c30cb0..6152048b 100644
--- a/docs/classes/YooKassa-Model-ReceiptItem.md
+++ b/docs/classes/YooKassa-Model-ReceiptItem.md
@@ -10,31 +10,47 @@
---
### Constants
-* No constants found
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [DESCRIPTION_MAX_LENGTH](../classes/YooKassa-Model-ReceiptItem.md#constant_DESCRIPTION_MAX_LENGTH) | | |
+| public | [ADD_PROPS_MAX_LENGTH](../classes/YooKassa-Model-ReceiptItem.md#constant_ADD_PROPS_MAX_LENGTH) | | |
---
### Properties
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
+| public | [$additional_payment_subject_props](../classes/YooKassa-Model-ReceiptItem.md#property_additional_payment_subject_props) | | Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191) |
+| public | [$additionalPaymentSubjectProps](../classes/YooKassa-Model-ReceiptItem.md#property_additionalPaymentSubjectProps) | | Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191) |
+| public | [$agent_type](../classes/YooKassa-Model-ReceiptItem.md#property_agent_type) | | Тип посредника, реализующего товар или услугу |
+| public | [$agentType](../classes/YooKassa-Model-ReceiptItem.md#property_agentType) | | Тип посредника, реализующего товар или услугу |
| public | [$amount](../classes/YooKassa-Model-ReceiptItem.md#property_amount) | | Суммарная стоимость покупаемого товара в копейках/центах |
-| public | [$country_of_origin_code](../classes/YooKassa-Model-ReceiptItem.md#property_country_of_origin_code) | | Код страны происхождения товара |
-| public | [$countryOfOriginCode](../classes/YooKassa-Model-ReceiptItem.md#property_countryOfOriginCode) | | Код страны происхождения товара |
-| public | [$customs_declaration_number](../classes/YooKassa-Model-ReceiptItem.md#property_customs_declaration_number) | | Номер таможенной декларации (от 1 до 32 символов) |
-| public | [$customsDeclarationNumber](../classes/YooKassa-Model-ReceiptItem.md#property_customsDeclarationNumber) | | Номер таможенной декларации (от 1 до 32 символов) |
-| public | [$description](../classes/YooKassa-Model-ReceiptItem.md#property_description) | | Наименование товара |
-| public | [$excise](../classes/YooKassa-Model-ReceiptItem.md#property_excise) | | Сумма акциза товара с учетом копеек |
+| public | [$country_of_origin_code](../classes/YooKassa-Model-ReceiptItem.md#property_country_of_origin_code) | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| public | [$countryOfOriginCode](../classes/YooKassa-Model-ReceiptItem.md#property_countryOfOriginCode) | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| public | [$customs_declaration_number](../classes/YooKassa-Model-ReceiptItem.md#property_customs_declaration_number) | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| public | [$customsDeclarationNumber](../classes/YooKassa-Model-ReceiptItem.md#property_customsDeclarationNumber) | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| public | [$description](../classes/YooKassa-Model-ReceiptItem.md#property_description) | | Наименование товара (тег в 54 ФЗ — 1030) |
+| public | [$excise](../classes/YooKassa-Model-ReceiptItem.md#property_excise) | | Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229) |
| public | [$isShipping](../classes/YooKassa-Model-ReceiptItem.md#property_isShipping) | | Флаг доставки |
-| public | [$payment_mode](../classes/YooKassa-Model-ReceiptItem.md#property_payment_mode) | | Признак способа расчета |
-| public | [$payment_subject](../classes/YooKassa-Model-ReceiptItem.md#property_payment_subject) | | Признак предмета расчета |
-| public | [$paymentMode](../classes/YooKassa-Model-ReceiptItem.md#property_paymentMode) | | Признак способа расчета |
-| public | [$paymentSubject](../classes/YooKassa-Model-ReceiptItem.md#property_paymentSubject) | | Признак предмета расчета |
-| public | [$price](../classes/YooKassa-Model-ReceiptItem.md#property_price) | | Цена товара |
-| public | [$product_code](../classes/YooKassa-Model-ReceiptItem.md#property_product_code) | | Код товара |
-| public | [$productCode](../classes/YooKassa-Model-ReceiptItem.md#property_productCode) | | Код товара |
-| public | [$quantity](../classes/YooKassa-Model-ReceiptItem.md#property_quantity) | | Количество |
-| public | [$supplier](../classes/YooKassa-Model-ReceiptItem.md#property_supplier) | | Информация о поставщике товара или услуги |
-| public | [$vat_code](../classes/YooKassa-Model-ReceiptItem.md#property_vat_code) | | Ставка НДС, число 1-6 |
-| public | [$vatCode](../classes/YooKassa-Model-ReceiptItem.md#property_vatCode) | | Ставка НДС, число 1-6 |
+| public | [$mark_code_info](../classes/YooKassa-Model-ReceiptItem.md#property_mark_code_info) | | Код товара (тег в 54 ФЗ — 1163) |
+| public | [$mark_mode](../classes/YooKassa-Model-ReceiptItem.md#property_mark_mode) | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| public | [$mark_quantity](../classes/YooKassa-Model-ReceiptItem.md#property_mark_quantity) | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| public | [$markCodeInfo](../classes/YooKassa-Model-ReceiptItem.md#property_markCodeInfo) | | Код товара (тег в 54 ФЗ — 1163) |
+| public | [$markMode](../classes/YooKassa-Model-ReceiptItem.md#property_markMode) | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| public | [$markQuantity](../classes/YooKassa-Model-ReceiptItem.md#property_markQuantity) | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| public | [$measure](../classes/YooKassa-Model-ReceiptItem.md#property_measure) | | Мера количества предмета расчета (тег в 54 ФЗ — 2108) |
+| public | [$payment_mode](../classes/YooKassa-Model-ReceiptItem.md#property_payment_mode) | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| public | [$payment_subject](../classes/YooKassa-Model-ReceiptItem.md#property_payment_subject) | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| public | [$payment_subject_industry_details](../classes/YooKassa-Model-ReceiptItem.md#property_payment_subject_industry_details) | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| public | [$paymentMode](../classes/YooKassa-Model-ReceiptItem.md#property_paymentMode) | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| public | [$paymentSubject](../classes/YooKassa-Model-ReceiptItem.md#property_paymentSubject) | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| public | [$paymentSubjectIndustryDetails](../classes/YooKassa-Model-ReceiptItem.md#property_paymentSubjectIndustryDetails) | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| public | [$price](../classes/YooKassa-Model-ReceiptItem.md#property_price) | | Цена товара (тег в 54 ФЗ — 1079) |
+| public | [$product_code](../classes/YooKassa-Model-ReceiptItem.md#property_product_code) | | Код товара (тег в 54 ФЗ — 1162) |
+| public | [$productCode](../classes/YooKassa-Model-ReceiptItem.md#property_productCode) | | Код товара (тег в 54 ФЗ — 1162) |
+| public | [$quantity](../classes/YooKassa-Model-ReceiptItem.md#property_quantity) | | Количество (тег в 54 ФЗ — 1023) |
+| public | [$supplier](../classes/YooKassa-Model-ReceiptItem.md#property_supplier) | | Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224) |
+| public | [$vat_code](../classes/YooKassa-Model-ReceiptItem.md#property_vat_code) | | Ставка НДС (тег в 54 ФЗ — 1199), число 1-6 |
+| public | [$vatCode](../classes/YooKassa-Model-ReceiptItem.md#property_vatCode) | | Ставка НДС (тег в 54 ФЗ — 1199), число 1-6 |
---
### Methods
@@ -48,14 +64,20 @@
| public | [applyDiscountCoefficient()](../classes/YooKassa-Model-ReceiptItem.md#method_applyDiscountCoefficient) | | Применяет для товара скидку |
| public | [fetchItem()](../classes/YooKassa-Model-ReceiptItem.md#method_fetchItem) | | Уменьшает количество покупаемого товара на указанное, возвращает объект позиции в чеке с уменьшаемым количеством |
| public | [fromArray()](../classes/YooKassa-Model-ReceiptItem.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getAdditionalPaymentSubjectProps()](../classes/YooKassa-Model-ReceiptItem.md#method_getAdditionalPaymentSubjectProps) | | Возвращает дополнительный реквизит предмета расчета |
| public | [getAgentType()](../classes/YooKassa-Model-ReceiptItem.md#method_getAgentType) | | Возвращает тип посредника, реализующего товар или услугу |
| public | [getAmount()](../classes/YooKassa-Model-ReceiptItem.md#method_getAmount) | | Возвращает общую стоимость покупаемого товара в копейках/центах |
| public | [getCountryOfOriginCode()](../classes/YooKassa-Model-ReceiptItem.md#method_getCountryOfOriginCode) | | Возвращает код страны происхождения товара по общероссийскому классификатору стран мира |
| public | [getCustomsDeclarationNumber()](../classes/YooKassa-Model-ReceiptItem.md#method_getCustomsDeclarationNumber) | | Возвращает номер таможенной декларации |
| public | [getDescription()](../classes/YooKassa-Model-ReceiptItem.md#method_getDescription) | | Возвращает наименование товара |
| public | [getExcise()](../classes/YooKassa-Model-ReceiptItem.md#method_getExcise) | | Возвращает сумму акциза товара с учетом копеек |
+| public | [getMarkCodeInfo()](../classes/YooKassa-Model-ReceiptItem.md#method_getMarkCodeInfo) | | Возвращает код товара |
+| public | [getMarkMode()](../classes/YooKassa-Model-ReceiptItem.md#method_getMarkMode) | | Возвращает режим обработки кода маркировки |
+| public | [getMarkQuantity()](../classes/YooKassa-Model-ReceiptItem.md#method_getMarkQuantity) | | Возвращает дробное количество маркированного товара |
+| public | [getMeasure()](../classes/YooKassa-Model-ReceiptItem.md#method_getMeasure) | | Возвращает меру количества предмета расчета |
| public | [getPaymentMode()](../classes/YooKassa-Model-ReceiptItem.md#method_getPaymentMode) | | Возвращает признак способа расчета |
| public | [getPaymentSubject()](../classes/YooKassa-Model-ReceiptItem.md#method_getPaymentSubject) | | Возвращает признак предмета расчета |
+| public | [getPaymentSubjectIndustryDetails()](../classes/YooKassa-Model-ReceiptItem.md#method_getPaymentSubjectIndustryDetails) | | Возвращает отраслевой реквизит чека |
| public | [getPrice()](../classes/YooKassa-Model-ReceiptItem.md#method_getPrice) | | Возвращает цену товара |
| public | [getProductCode()](../classes/YooKassa-Model-ReceiptItem.md#method_getProductCode) | | Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [getQuantity()](../classes/YooKassa-Model-ReceiptItem.md#method_getQuantity) | | Возвращает количество товара |
@@ -68,14 +90,20 @@
| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setAdditionalPaymentSubjectProps()](../classes/YooKassa-Model-ReceiptItem.md#method_setAdditionalPaymentSubjectProps) | | Устанавливает дополнительный реквизит предмета расчета |
| public | [setAgentType()](../classes/YooKassa-Model-ReceiptItem.md#method_setAgentType) | | Устанавливает тип посредника, реализующего товар или услугу |
| public | [setCountryOfOriginCode()](../classes/YooKassa-Model-ReceiptItem.md#method_setCountryOfOriginCode) | | Устанавливает код страны происхождения товара по общероссийскому классификатору стран мира |
| public | [setCustomsDeclarationNumber()](../classes/YooKassa-Model-ReceiptItem.md#method_setCustomsDeclarationNumber) | | Устанавливает номер таможенной декларации (от 1 до 32 символов) |
| public | [setDescription()](../classes/YooKassa-Model-ReceiptItem.md#method_setDescription) | | Устанавливает наименование товара |
| public | [setExcise()](../classes/YooKassa-Model-ReceiptItem.md#method_setExcise) | | Устанавливает сумму акциза товара с учетом копеек |
| public | [setIsShipping()](../classes/YooKassa-Model-ReceiptItem.md#method_setIsShipping) | | Устанавливает флаг доставки для текущего объекта айтема в чеке |
+| public | [setMarkCodeInfo()](../classes/YooKassa-Model-ReceiptItem.md#method_setMarkCodeInfo) | | Устанавливает код товара |
+| public | [setMarkMode()](../classes/YooKassa-Model-ReceiptItem.md#method_setMarkMode) | | Устанавливает режим обработки кода маркировки |
+| public | [setMarkQuantity()](../classes/YooKassa-Model-ReceiptItem.md#method_setMarkQuantity) | | Устанавливает дробное количество маркированного товара |
+| public | [setMeasure()](../classes/YooKassa-Model-ReceiptItem.md#method_setMeasure) | | Устанавливает меру количества предмета расчета |
| public | [setPaymentMode()](../classes/YooKassa-Model-ReceiptItem.md#method_setPaymentMode) | | Устанавливает признак способа расчета |
| public | [setPaymentSubject()](../classes/YooKassa-Model-ReceiptItem.md#method_setPaymentSubject) | | Устанавливает признак предмета расчета |
+| public | [setPaymentSubjectIndustryDetails()](../classes/YooKassa-Model-ReceiptItem.md#method_setPaymentSubjectIndustryDetails) | | Устанавливает отраслевой реквизит чека |
| public | [setPrice()](../classes/YooKassa-Model-ReceiptItem.md#method_setPrice) | | Устанавливает цену товара |
| public | [setProductCode()](../classes/YooKassa-Model-ReceiptItem.md#method_setProductCode) | | Устанавливает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [setQuantity()](../classes/YooKassa-Model-ReceiptItem.md#method_setQuantity) | | Устанавливает количество покупаемого товара |
@@ -94,8 +122,73 @@
* Implements:
* [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+---
+## Constants
+
+###### DESCRIPTION_MAX_LENGTH
+```php
+DESCRIPTION_MAX_LENGTH = 128 : int
+```
+
+
+
+###### ADD_PROPS_MAX_LENGTH
+```php
+ADD_PROPS_MAX_LENGTH = 64 : int
+```
+
+
+
---
## Properties
+
+#### public $additional_payment_subject_props : string
+---
+***Description***
+
+Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $additionalPaymentSubjectProps : string
+---
+***Description***
+
+Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $agent_type : string
+---
+***Description***
+
+Тип посредника, реализующего товар или услугу
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $agentType : string
+---
+***Description***
+
+Тип посредника, реализующего товар или услугу
+
+**Type:** string
+
+**Details:**
+
+
#### public $amount : float
---
@@ -113,7 +206,7 @@
---
***Description***
-Код страны происхождения товара
+Код страны происхождения товара (тег в 54 ФЗ — 1230)
**Type:** string
@@ -125,7 +218,7 @@
---
***Description***
-Код страны происхождения товара
+Код страны происхождения товара (тег в 54 ФЗ — 1230)
**Type:** string
@@ -137,7 +230,7 @@
---
***Description***
-Номер таможенной декларации (от 1 до 32 символов)
+Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
**Type:** string
@@ -149,7 +242,7 @@
---
***Description***
-Номер таможенной декларации (от 1 до 32 символов)
+Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
**Type:** string
@@ -161,7 +254,7 @@
---
***Description***
-Наименование товара
+Наименование товара (тег в 54 ФЗ — 1030)
**Type:** string
@@ -173,7 +266,7 @@
---
***Description***
-Сумма акциза товара с учетом копеек
+Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
**Type:** float
@@ -192,12 +285,96 @@
**Details:**
+
+#### public $mark_code_info : \YooKassa\Model\Receipt\MarkCodeInfo
+---
+***Description***
+
+Код товара (тег в 54 ФЗ — 1163)
+
+**Type:** MarkCodeInfo
+
+**Details:**
+
+
+
+#### public $mark_mode : string
+---
+***Description***
+
+Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $mark_quantity : \YooKassa\Model\Receipt\MarkQuantity
+---
+***Description***
+
+Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+
+**Type:** MarkQuantity
+
+**Details:**
+
+
+
+#### public $markCodeInfo : \YooKassa\Model\Receipt\MarkCodeInfo
+---
+***Description***
+
+Код товара (тег в 54 ФЗ — 1163)
+
+**Type:** MarkCodeInfo
+
+**Details:**
+
+
+
+#### public $markMode : string
+---
+***Description***
+
+Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $markQuantity : \YooKassa\Model\Receipt\MarkQuantity
+---
+***Description***
+
+Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+
+**Type:** MarkQuantity
+
+**Details:**
+
+
+
+#### public $measure : string
+---
+***Description***
+
+Мера количества предмета расчета (тег в 54 ФЗ — 2108)
+
+**Type:** string
+
+**Details:**
+
+
#### public $payment_mode : string
---
***Description***
-Признак способа расчета
+Признак способа расчета (тег в 54 ФЗ — 1214)
**Type:** string
@@ -209,19 +386,31 @@
---
***Description***
-Признак предмета расчета
+Признак предмета расчета (тег в 54 ФЗ — 1212)
**Type:** string
**Details:**
+
+#### public $payment_subject_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
#### public $paymentMode : string
---
***Description***
-Признак способа расчета
+Признак способа расчета (тег в 54 ФЗ — 1214)
**Type:** string
@@ -233,19 +422,31 @@
---
***Description***
-Признак предмета расчета
+Признак предмета расчета (тег в 54 ФЗ — 1212)
**Type:** string
**Details:**
+
+#### public $paymentSubjectIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
#### public $price : \YooKassa\Model\AmountInterface
---
***Description***
-Цена товара
+Цена товара (тег в 54 ФЗ — 1079)
**Type:** AmountInterface
@@ -257,7 +458,7 @@
---
***Description***
-Код товара
+Код товара (тег в 54 ФЗ — 1162)
**Type:** string
@@ -269,7 +470,7 @@
---
***Description***
-Код товара
+Код товара (тег в 54 ФЗ — 1162)
**Type:** string
@@ -281,7 +482,7 @@
---
***Description***
-Количество
+Количество (тег в 54 ФЗ — 1023)
**Type:** float
@@ -293,7 +494,7 @@
---
***Description***
-Информация о поставщике товара или услуги
+Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
**Type:** Supplier
@@ -305,7 +506,7 @@
---
***Description***
-Ставка НДС, число 1-6
+Ставка НДС (тег в 54 ФЗ — 1199), число 1-6
**Type:** int
@@ -317,7 +518,7 @@
---
***Description***
-Ставка НДС, число 1-6
+Ставка НДС (тег в 54 ФЗ — 1199), число 1-6
**Type:** int
@@ -511,6 +712,23 @@ public fromArray(array|\Traversable $sourceArray) : mixed
**Returns:** mixed -
+
+#### public getAdditionalPaymentSubjectProps() : string
+
+```php
+public getAdditionalPaymentSubjectProps() : string
+```
+
+**Summary**
+
+Возвращает дополнительный реквизит предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** string - Дополнительный реквизит предмета расчета
+
+
#### public getAgentType() : string
@@ -613,6 +831,74 @@ public getExcise() : float|null
**Returns:** float|null - Сумма акциза товара с учетом копеек
+
+#### public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Summary**
+
+Возвращает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo - Код товара
+
+
+
+#### public getMarkMode() : string
+
+```php
+public getMarkMode() : string
+```
+
+**Summary**
+
+Возвращает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** string - Режим обработки кода маркировки
+
+
+
+#### public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+
+```php
+public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+```
+
+**Summary**
+
+Возвращает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkQuantity - Дробное количество маркированного товара
+
+
+
+#### public getMeasure() : string
+
+```php
+public getMeasure() : string
+```
+
+**Summary**
+
+Возвращает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** string - Мера количества предмета расчета
+
+
#### public getPaymentMode() : string|null
@@ -647,6 +933,23 @@ public getPaymentSubject() : string|null
**Returns:** string|null - Признак предмета расчета
+
+#### public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
#### public getPrice() : \YooKassa\Model\AmountInterface
@@ -881,6 +1184,28 @@ public offsetUnset(string $offset) : mixed
**Returns:** mixed -
+
+#### public setAdditionalPaymentSubjectProps() : mixed
+
+```php
+public setAdditionalPaymentSubjectProps(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает дополнительный реквизит предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Дополнительный реквизит предмета расчета |
+
+**Returns:** mixed -
+
+
#### public setAgentType() : mixed
@@ -1039,6 +1364,94 @@ public setIsShipping(bool $value) : \YooKassa\Model\ReceiptItem
**Returns:** \YooKassa\Model\ReceiptItem -
+
+#### public setMarkCodeInfo() : mixed
+
+```php
+public setMarkCodeInfo(array|\YooKassa\Model\Receipt\MarkCodeInfo $value) : mixed
+```
+
+**Summary**
+
+Устанавливает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\MarkCodeInfo | value | Код товара |
+
+**Returns:** mixed -
+
+
+
+#### public setMarkMode() : mixed
+
+```php
+public setMarkMode(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Режим обработки кода маркировки |
+
+**Returns:** mixed -
+
+
+
+#### public setMarkQuantity() : mixed
+
+```php
+public setMarkQuantity(array|\YooKassa\Model\Receipt\MarkQuantity $value) : mixed
+```
+
+**Summary**
+
+Устанавливает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\MarkQuantity | value | Дробное количество маркированного товара |
+
+**Returns:** mixed -
+
+
+
+#### public setMeasure() : mixed
+
+```php
+public setMeasure(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Мера количества предмета расчета |
+
+**Returns:** mixed -
+
+
#### public setPaymentMode() : mixed
@@ -1093,6 +1506,28 @@ public setPaymentSubject(string $value) : mixed
**Returns:** mixed -
+
+#### public setPaymentSubjectIndustryDetails() : mixed
+
+```php
+public setPaymentSubjectIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItem](../classes/YooKassa-Model-ReceiptItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** mixed -
+
+
#### public setPrice() : mixed
@@ -1172,10 +1607,10 @@ public setQuantity(int $value) : mixed
-#### public setSupplier() : mixed
+#### public setSupplier() : $this
```php
-public setSupplier(\YooKassa\Model\SupplierInterface|array $value) : mixed
+public setSupplier(\YooKassa\Model\SupplierInterface|array $value) : $this
```
**Summary**
@@ -1188,9 +1623,9 @@ public setSupplier(\YooKassa\Model\SupplierInterface|array $value) : mixed
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
-| \YooKassa\Model\SupplierInterface OR array | value | |
+| \YooKassa\Model\SupplierInterface OR array | value | Информация о поставщике товара или услуги |
-**Returns:** mixed -
+**Returns:** $this -
@@ -1272,6 +1707,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptItemInterface.md b/docs/classes/YooKassa-Model-ReceiptItemInterface.md
index 7cf5398e..7e0329cb 100644
--- a/docs/classes/YooKassa-Model-ReceiptItemInterface.md
+++ b/docs/classes/YooKassa-Model-ReceiptItemInterface.md
@@ -15,18 +15,24 @@ Interface ReceiptItemInterface
### Methods
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
-| public | [getAgentType()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getAgentType) | | |
+| public | [getAdditionalPaymentSubjectProps()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getAdditionalPaymentSubjectProps) | | Возвращает дополнительный реквизит предмета расчета |
+| public | [getAgentType()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getAgentType) | | Возвращает тип посредника, реализующего товар или услугу |
| public | [getAmount()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getAmount) | | Возвращает общую стоимость покупаемого товара в копейках/центах |
| public | [getCountryOfOriginCode()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getCountryOfOriginCode) | | Возвращает код страны происхождения товара по общероссийскому классификатору стран мира |
| public | [getCustomsDeclarationNumber()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getCustomsDeclarationNumber) | | Возвращает номер таможенной декларации |
| public | [getDescription()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getDescription) | | Возвращает наименование товара |
| public | [getExcise()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getExcise) | | Возвращает сумму акциза товара с учетом копеек |
+| public | [getMarkCodeInfo()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getMarkCodeInfo) | | Возвращает код товара |
+| public | [getMarkMode()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getMarkMode) | | Возвращает режим обработки кода маркировки |
+| public | [getMarkQuantity()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getMarkQuantity) | | Возвращает дробное количество маркированного товара |
+| public | [getMeasure()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getMeasure) | | Возвращает меру количества предмета расчета |
| public | [getPaymentMode()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getPaymentMode) | | Возвращает признак способа расчета |
| public | [getPaymentSubject()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getPaymentSubject) | | Возвращает признак предмета расчета |
+| public | [getPaymentSubjectIndustryDetails()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getPaymentSubjectIndustryDetails) | | Возвращает отраслевой реквизит чека |
| public | [getPrice()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getPrice) | | Возвращает цену товара |
| public | [getProductCode()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getProductCode) | | Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [getQuantity()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getQuantity) | | Возвращает количество товара |
-| public | [getSupplier()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getSupplier) | | Возвращает информацию о поставщике товара или услуги. |
+| public | [getSupplier()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getSupplier) | | Возвращает информацию о поставщике товара или услуги |
| public | [getVatCode()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_getVatCode) | | Возвращает ставку НДС |
| public | [isShipping()](../classes/YooKassa-Model-ReceiptItemInterface.md#method_isShipping) | | Проверяет, является ли текущий элемент чека доставкой |
@@ -39,23 +45,37 @@ Interface ReceiptItemInterface
### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
-| property-read | | Наименование товара |
-| property-read | | Количество |
+| property-read | | Наименование товара (тег в 54 ФЗ — 1030) |
+| property-read | | Количество (тег в 54 ФЗ — 1023) |
+| property-read | | Мера количества предмета расчета (тег в 54 ФЗ — 2108) |
+| property-read | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| property-read | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
| property-read | | Суммарная стоимость покупаемого товара в копейках/центах |
-| property-read | | Цена товара |
-| property-read | | Ставка НДС, число 1-6 |
-| property-read | | Ставка НДС, число 1-6 |
-| property-read | | Признак предмета расчета |
-| property-read | | Признак предмета расчета |
-| property-read | | Признак способа расчета |
-| property-read | | Признак способа расчета |
-| property-read | | Код товара |
-| property-read | | Код товара |
-| property-read | | Код страны происхождения товара |
-| property-read | | Код страны происхождения товара |
-| property-read | | Номер таможенной декларации (от 1 до 32 символов) |
-| property-read | | Номер таможенной декларации (от 1 до 32 символов) |
-| property-read | | Сумма акциза товара с учетом копеек |
+| property-read | | Цена товара (тег в 54 ФЗ — 1079) |
+| property-read | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
+| property-read | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
+| property-read | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| property-read | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| property-read | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| property-read | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| property-read | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| property-read | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| property-read | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| property-read | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| property-read | | Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229) |
+| property-read | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| property-read | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| property-read | | Код товара (тег в 54 ФЗ — 1163) |
+| property-read | | Код товара (тег в 54 ФЗ — 1163) |
+| property-read | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| property-read | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| property-read | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| property-read | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| property-read | | Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191) |
+| property-read | | Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191) |
+| property-read | | Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224) |
+| property-read | | Тип посредника, реализующего товар или услугу |
+| property-read | | Тип посредника, реализующего товар или услугу |
---
## Methods
@@ -195,6 +215,108 @@ public getProductCode() : string|null
**Returns:** string|null - Код товара
+
+#### public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Summary**
+
+Возвращает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo - Код товара
+
+
+
+#### public getMeasure() : string
+
+```php
+public getMeasure() : string
+```
+
+**Summary**
+
+Возвращает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** string - Мера количества предмета расчета
+
+
+
+#### public getMarkMode() : string
+
+```php
+public getMarkMode() : string
+```
+
+**Summary**
+
+Возвращает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** string - Режим обработки кода маркировки
+
+
+
+#### public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+
+```php
+public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+```
+
+**Summary**
+
+Возвращает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkQuantity - Дробное количество маркированного товара
+
+
+
+#### public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getAdditionalPaymentSubjectProps() : string
+
+```php
+public getAdditionalPaymentSubjectProps() : string
+```
+
+**Summary**
+
+Возвращает дополнительный реквизит предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
+
+**Returns:** string - Дополнительный реквизит предмета расчета
+
+
#### public getCountryOfOriginCode() : string|null
@@ -255,12 +377,12 @@ public getSupplier() : \YooKassa\Model\SupplierInterface
**Summary**
-Возвращает информацию о поставщике товара или услуги.
+Возвращает информацию о поставщике товара или услуги
**Details:**
* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
-**Returns:** \YooKassa\Model\SupplierInterface -
+**Returns:** \YooKassa\Model\SupplierInterface - Информация о поставщике товара или услуги
@@ -270,10 +392,14 @@ public getSupplier() : \YooKassa\Model\SupplierInterface
public getAgentType() : string
```
+**Summary**
+
+Возвращает тип посредника, реализующего товар или услугу
+
**Details:**
* Inherited From: [\YooKassa\Model\ReceiptItemInterface](../classes/YooKassa-Model-ReceiptItemInterface.md)
-**Returns:** string -
+**Returns:** string - Тип посредника, реализующего товар или услугу.
@@ -310,6 +436,6 @@ public isShipping() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptRegistrationStatus.md b/docs/classes/YooKassa-Model-ReceiptRegistrationStatus.md
index d76f116a..f96bf553 100644
--- a/docs/classes/YooKassa-Model-ReceiptRegistrationStatus.md
+++ b/docs/classes/YooKassa-Model-ReceiptRegistrationStatus.md
@@ -155,6 +155,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ReceiptType.md b/docs/classes/YooKassa-Model-ReceiptType.md
index 4bb3af60..9812593f 100644
--- a/docs/classes/YooKassa-Model-ReceiptType.md
+++ b/docs/classes/YooKassa-Model-ReceiptType.md
@@ -154,6 +154,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Recipient.md b/docs/classes/YooKassa-Model-Recipient.md
index e5e5ff59..0a33f5e1 100644
--- a/docs/classes/YooKassa-Model-Recipient.md
+++ b/docs/classes/YooKassa-Model-Recipient.md
@@ -494,6 +494,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-RecipientInterface.md b/docs/classes/YooKassa-Model-RecipientInterface.md
index 3f50a5f0..ec9333bd 100644
--- a/docs/classes/YooKassa-Model-RecipientInterface.md
+++ b/docs/classes/YooKassa-Model-RecipientInterface.md
@@ -94,6 +94,6 @@ public getGatewayId() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Refund.md b/docs/classes/YooKassa-Model-Refund.md
index 95b43aeb..3b4f4b73 100644
--- a/docs/classes/YooKassa-Model-Refund.md
+++ b/docs/classes/YooKassa-Model-Refund.md
@@ -944,6 +944,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-RefundInterface.md b/docs/classes/YooKassa-Model-RefundInterface.md
index f879e1fa..e097ed73 100644
--- a/docs/classes/YooKassa-Model-RefundInterface.md
+++ b/docs/classes/YooKassa-Model-RefundInterface.md
@@ -218,6 +218,6 @@ public getDeal() : \YooKassa\Model\Deal\RefundDealInfo
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-RefundStatus.md b/docs/classes/YooKassa-Model-RefundStatus.md
index 4357c8dc..601774df 100644
--- a/docs/classes/YooKassa-Model-RefundStatus.md
+++ b/docs/classes/YooKassa-Model-RefundStatus.md
@@ -152,6 +152,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Requestor.md b/docs/classes/YooKassa-Model-Requestor.md
index 3534ac6e..c90ca0fa 100644
--- a/docs/classes/YooKassa-Model-Requestor.md
+++ b/docs/classes/YooKassa-Model-Requestor.md
@@ -637,6 +637,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-RequestorInterface.md b/docs/classes/YooKassa-Model-RequestorInterface.md
index fbad1683..ec0bf07d 100644
--- a/docs/classes/YooKassa-Model-RequestorInterface.md
+++ b/docs/classes/YooKassa-Model-RequestorInterface.md
@@ -217,6 +217,6 @@ public setClientName(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-SafeDeal.md b/docs/classes/YooKassa-Model-SafeDeal.md
index fabe4b84..957bb524 100644
--- a/docs/classes/YooKassa-Model-SafeDeal.md
+++ b/docs/classes/YooKassa-Model-SafeDeal.md
@@ -858,6 +858,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Settlement.md b/docs/classes/YooKassa-Model-Settlement.md
index aab295d3..d854bd40 100644
--- a/docs/classes/YooKassa-Model-Settlement.md
+++ b/docs/classes/YooKassa-Model-Settlement.md
@@ -448,6 +448,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-SettlementInterface.md b/docs/classes/YooKassa-Model-SettlementInterface.md
index bbd45c1c..a0d75ba8 100644
--- a/docs/classes/YooKassa-Model-SettlementInterface.md
+++ b/docs/classes/YooKassa-Model-SettlementInterface.md
@@ -83,6 +83,6 @@ public getAmount() : \YooKassa\Model\AmountInterface
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Source.md b/docs/classes/YooKassa-Model-Source.md
index ae3892c4..cab7ae0e 100644
--- a/docs/classes/YooKassa-Model-Source.md
+++ b/docs/classes/YooKassa-Model-Source.md
@@ -570,6 +570,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-SourceInterface.md b/docs/classes/YooKassa-Model-SourceInterface.md
index cd9c089e..8c7bec6d 100644
--- a/docs/classes/YooKassa-Model-SourceInterface.md
+++ b/docs/classes/YooKassa-Model-SourceInterface.md
@@ -207,6 +207,6 @@ public setPlatformFeeAmount(\YooKassa\Model\AmountInterface|array $value) : mixe
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Supplier.md b/docs/classes/YooKassa-Model-Supplier.md
index 64887f28..de13f04c 100644
--- a/docs/classes/YooKassa-Model-Supplier.md
+++ b/docs/classes/YooKassa-Model-Supplier.md
@@ -505,6 +505,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-SupplierInterface.md b/docs/classes/YooKassa-Model-SupplierInterface.md
index f5a2d1d5..f603de71 100644
--- a/docs/classes/YooKassa-Model-SupplierInterface.md
+++ b/docs/classes/YooKassa-Model-SupplierInterface.md
@@ -177,6 +177,6 @@ public setInn($value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-ThreeDSecure.md b/docs/classes/YooKassa-Model-ThreeDSecure.md
index 054cd344..04b40189 100644
--- a/docs/classes/YooKassa-Model-ThreeDSecure.md
+++ b/docs/classes/YooKassa-Model-ThreeDSecure.md
@@ -397,6 +397,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Transfer.md b/docs/classes/YooKassa-Model-Transfer.md
index 5aaf16be..eed985ee 100644
--- a/docs/classes/YooKassa-Model-Transfer.md
+++ b/docs/classes/YooKassa-Model-Transfer.md
@@ -716,6 +716,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-TransferInterface.md b/docs/classes/YooKassa-Model-TransferInterface.md
index 3d9ebd05..afd77166 100644
--- a/docs/classes/YooKassa-Model-TransferInterface.md
+++ b/docs/classes/YooKassa-Model-TransferInterface.md
@@ -314,6 +314,6 @@ public hasMetadata() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-TransferStatus.md b/docs/classes/YooKassa-Model-TransferStatus.md
index 03c5f8cf..c1409833 100644
--- a/docs/classes/YooKassa-Model-TransferStatus.md
+++ b/docs/classes/YooKassa-Model-TransferStatus.md
@@ -161,6 +161,6 @@ Static public valueExists(mixed $value) : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Model-Webhook-Webhook.md b/docs/classes/YooKassa-Model-Webhook-Webhook.md
index 7f3c2933..334785d0 100644
--- a/docs/classes/YooKassa-Model-Webhook-Webhook.md
+++ b/docs/classes/YooKassa-Model-Webhook-Webhook.md
@@ -500,6 +500,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-AbstractDealResponse.md b/docs/classes/YooKassa-Request-Deals-AbstractDealResponse.md
index 897eef07..ef7d5c59 100644
--- a/docs/classes/YooKassa-Request-Deals-AbstractDealResponse.md
+++ b/docs/classes/YooKassa-Request-Deals-AbstractDealResponse.md
@@ -861,6 +861,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-CreateDealRequest.md b/docs/classes/YooKassa-Request-Deals-CreateDealRequest.md
index 5655b6cb..8e89450c 100644
--- a/docs/classes/YooKassa-Request-Deals-CreateDealRequest.md
+++ b/docs/classes/YooKassa-Request-Deals-CreateDealRequest.md
@@ -766,6 +766,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-CreateDealRequestBuilder.md b/docs/classes/YooKassa-Request-Deals-CreateDealRequestBuilder.md
index 1a997fd8..a89729cd 100644
--- a/docs/classes/YooKassa-Request-Deals-CreateDealRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Deals-CreateDealRequestBuilder.md
@@ -8,6 +8,92 @@
Класс билдера объектов запросов к API на создание платежа
+---
+### Examples
+Пример использования билдера
+
+```php
+try {
+ $builder = \YooKassa\Request\Payments\CreatePaymentRequest::builder();
+ $builder->setAmount(100)
+ ->setCurrency(\YooKassa\Model\CurrencyCode::RUB)
+ ->setCapture(true)
+ ->setDescription('Оплата заказа 112233')
+ ->setMetadata(array(
+ 'cms_name' => 'yoo_api_test',
+ 'order_id' => '112233',
+ 'language' => 'ru',
+ 'transaction_id' => '123-456-789',
+ ));
+
+ // Устанавливаем страницу для редиректа после оплаты
+ $builder->setConfirmation(array(
+ 'type' => \YooKassa\Model\ConfirmationType::REDIRECT,
+ 'returnUrl' => 'https://merchant-site.ru/payment-return-page',
+ ));
+
+ // Можем установить конкретный способ оплаты
+ $builder->setPaymentMethodData(\YooKassa\Model\PaymentMethodType::BANK_CARD);
+
+ // Составляем чек
+ $builder->setReceiptEmail('john.doe@merchant.com');
+ $builder->setReceiptPhone('71111111111');
+ // Добавим товар
+ $builder->addReceiptItem(
+ 'Платок Gucci',
+ 3000,
+ 1.0,
+ 2,
+ 'full_payment',
+ 'commodity'
+ );
+ // Добавим доставку
+ $builder->addReceiptShipping(
+ 'Delivery/Shipping/Доставка',
+ 100,
+ 1,
+ \YooKassa\Model\Receipt\PaymentMode::FULL_PAYMENT,
+ \YooKassa\Model\Receipt\PaymentSubject::SERVICE
+ );
+
+ // Можно добавить распределение денег по магазинам
+ $builder->setTransfers(array(
+ array(
+ 'account_id' => 123456,
+ 'amount' => array(
+ array(
+ 'value' => 1000,
+ 'currency' => \YooKassa\Model\CurrencyCode::RUB
+ )
+ ),
+ ),
+ array(
+ 'account_id' => 654321,
+ 'amount' => array(
+ array(
+ 'value' => 2000,
+ 'currency' => \YooKassa\Model\CurrencyCode::RUB
+ )
+ ),
+ )
+ ));
+
+ // Создаем объект запроса
+ $request = $builder->build();
+
+ // Можно изменить данные, если нужно
+ $request->setDescription($request->getDescription() . ' - merchant comment');
+
+ $idempotenceKey = uniqid('', true);
+ $response = $client->createPayment($request, $idempotenceKey);
+} catch (\Exception $e) {
+ $response = $e;
+}
+
+var_dump($response);
+
+```
+
---
### Constants
* No constants found
@@ -39,12 +125,6 @@
* [\YooKassa\Common\AbstractRequestBuilder](../classes/YooKassa-Common-AbstractRequestBuilder.md)
* \YooKassa\Request\Deals\CreateDealRequestBuilder
----
-### Tags
-| Tag | Version | Description |
-| --- | ------- | ----------- |
-| todo: | | @example 02-builder.php 11 78 Пример использования билдера |
-
---
## Properties
@@ -273,6 +353,6 @@ protected initCurrentObject() : \YooKassa\Request\Deals\CreateDealRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-CreateDealRequestInterface.md b/docs/classes/YooKassa-Request-Deals-CreateDealRequestInterface.md
index 87785f2c..5d221487 100644
--- a/docs/classes/YooKassa-Request-Deals-CreateDealRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Deals-CreateDealRequestInterface.md
@@ -286,6 +286,6 @@ public setMetadata(\YooKassa\Model\Metadata|array|null $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-CreateDealRequestSerializer.md b/docs/classes/YooKassa-Request-Deals-CreateDealRequestSerializer.md
index 9fd34469..f5deba7b 100644
--- a/docs/classes/YooKassa-Request-Deals-CreateDealRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Deals-CreateDealRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Deals\CreateDealRequestInterface|\YooKassa\Co
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-CreateDealResponse.md b/docs/classes/YooKassa-Request-Deals-CreateDealResponse.md
index b7c7e36c..c658f912 100644
--- a/docs/classes/YooKassa-Request-Deals-CreateDealResponse.md
+++ b/docs/classes/YooKassa-Request-Deals-CreateDealResponse.md
@@ -860,6 +860,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealResponse.md b/docs/classes/YooKassa-Request-Deals-DealResponse.md
index c35321dd..3ad0bcdb 100644
--- a/docs/classes/YooKassa-Request-Deals-DealResponse.md
+++ b/docs/classes/YooKassa-Request-Deals-DealResponse.md
@@ -860,6 +860,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealsRequest.md b/docs/classes/YooKassa-Request-Deals-DealsRequest.md
index 40c0b0cf..8c895f19 100644
--- a/docs/classes/YooKassa-Request-Deals-DealsRequest.md
+++ b/docs/classes/YooKassa-Request-Deals-DealsRequest.md
@@ -1394,6 +1394,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealsRequestBuilder.md b/docs/classes/YooKassa-Request-Deals-DealsRequestBuilder.md
index 582a48da..2608eee9 100644
--- a/docs/classes/YooKassa-Request-Deals-DealsRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Deals-DealsRequestBuilder.md
@@ -498,6 +498,6 @@ protected initCurrentObject() : \YooKassa\Request\Deals\DealsRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealsRequestInterface.md b/docs/classes/YooKassa-Request-Deals-DealsRequestInterface.md
index c7327188..1bd6f3a9 100644
--- a/docs/classes/YooKassa-Request-Deals-DealsRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Deals-DealsRequestInterface.md
@@ -765,6 +765,6 @@ public setFullTextSearch(string $value) : void
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealsRequestSerializer.md b/docs/classes/YooKassa-Request-Deals-DealsRequestSerializer.md
index 98ff0e82..dfe9e36a 100644
--- a/docs/classes/YooKassa-Request-Deals-DealsRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Deals-DealsRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Deals\DealsRequest|\YooKassa\Request\Deals\De
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Deals-DealsResponse.md b/docs/classes/YooKassa-Request-Deals-DealsResponse.md
index df66d6fa..afdbdcbd 100644
--- a/docs/classes/YooKassa-Request-Deals-DealsResponse.md
+++ b/docs/classes/YooKassa-Request-Deals-DealsResponse.md
@@ -389,6 +389,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-AbstractPaymentResponse.md b/docs/classes/YooKassa-Request-Payments-AbstractPaymentResponse.md
index 15b017c8..19172d56 100644
--- a/docs/classes/YooKassa-Request-Payments-AbstractPaymentResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-AbstractPaymentResponse.md
@@ -1850,6 +1850,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequest.md b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequest.md
index 55adf2ed..3c81d80e 100644
--- a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequest.md
+++ b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequest.md
@@ -1866,6 +1866,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md
index 8cdf5082..3945e4a8 100644
--- a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md
@@ -132,8 +132,11 @@ var_dump($response);
| public | [setPaymentMethodId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setPaymentMethodId) | | Устанавливает идентификатор записи о сохранённых данных покупателя |
| public | [setPaymentToken()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setPaymentToken) | | Устанавливает одноразовый токен для проведения оплаты |
| public | [setReceipt()](../classes/YooKassa-Common-AbstractPaymentRequestBuilder.md#method_setReceipt) | | Устанавливает чек |
+| public | [setReceiptAdditionalUserProps()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setReceiptAdditionalUserProps) | | Устанавливает отраслевой реквизит чека |
| public | [setReceiptEmail()](../classes/YooKassa-Common-AbstractPaymentRequestBuilder.md#method_setReceiptEmail) | | Устанавливает адрес электронной почты получателя чека |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
| public | [setReceiptItems()](../classes/YooKassa-Common-AbstractPaymentRequestBuilder.md#method_setReceiptItems) | | Устанавлвиает список товаров для создания чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setReceiptOperationalDetails) | | Устанавливает отраслевой реквизит чека |
| public | [setReceiptPhone()](../classes/YooKassa-Common-AbstractPaymentRequestBuilder.md#method_setReceiptPhone) | | Устанавливает телефон получателя чека |
| public | [setRecipient()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setRecipient) | | Устанавливает получателя платежа из объекта или ассоциативного массива |
| public | [setSavePaymentMethod()](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md#method_setSavePaymentMethod) | | Устанавливает флаг сохранения платёжных данных. Значение true инициирует создание многоразового payment_method. |
@@ -766,6 +769,28 @@ public setReceipt(\YooKassa\Model\ReceiptInterface|array $value) : self
**Returns:** self -
+
+#### public setReceiptAdditionalUserProps() : self
+
+```php
+public setReceiptAdditionalUserProps(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : self
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestBuilder](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** self - Инстанс билдера запросов
+
+
#### public setReceiptEmail() : self
@@ -788,6 +813,28 @@ public setReceiptEmail(string $value) : self
**Returns:** self - Инстанс билдера запросов
+
+#### public setReceiptIndustryDetails() : self
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : self
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestBuilder](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** self - Инстанс билдера запросов
+
+
#### public setReceiptItems() : self
@@ -815,6 +862,28 @@ public setReceiptItems(array $value) : self
**Returns:** self - Инстанс билдера запросов
+
+#### public setReceiptOperationalDetails() : self
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : self
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestBuilder](../classes/YooKassa-Request-Payments-CreatePaymentRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** self - Инстанс билдера запросов
+
+
#### public setReceiptPhone() : self
@@ -1007,6 +1076,6 @@ protected initCurrentObject() : \YooKassa\Request\Payments\CreatePaymentRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md
index d5605a4a..47d13d40 100644
--- a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md
@@ -955,6 +955,6 @@ public setMerchantCustomerId(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestSerializer.md b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestSerializer.md
index 15065651..cf993f48 100644
--- a/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Payments-CreatePaymentRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Payments\CreatePaymentRequestInterface $reque
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-CreatePaymentResponse.md b/docs/classes/YooKassa-Request-Payments-CreatePaymentResponse.md
index c0c1b6c1..cce4363f 100644
--- a/docs/classes/YooKassa-Request-Payments-CreatePaymentResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-CreatePaymentResponse.md
@@ -1844,6 +1844,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CancelResponse.md b/docs/classes/YooKassa-Request-Payments-Payment-CancelResponse.md
index fbb4123b..03c08cd9 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CancelResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CancelResponse.md
@@ -1844,6 +1844,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequest.md b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequest.md
index 31c282d9..e0e3db11 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequest.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequest.md
@@ -787,6 +787,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestBuilder.md b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestBuilder.md
index efad6ce5..7cc3f290 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestBuilder.md
@@ -210,7 +210,7 @@ public build(array|null $options = null) : \YooKassa\Request\Payments\Payment\Cr
| \YooKassa\Common\Exceptions\InvalidRequestException | Выбрасывается если при валидации запроса произошла ошибка |
| \YooKassa\Common\Exceptions\InvalidPropertyException | Выбрасывается если не удалось установить один из параметров, переданных в массиве настроек |
-**Returns:** \YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface|\YooKassa\Common\AbstractRequest - Иснатс объекта запроса к API
+**Returns:** \YooKassa\Request\Payments\Payment\CreateCaptureRequestInterface|\YooKassa\Common\AbstractRequest - Инстанс объекта запроса к API
@@ -465,6 +465,6 @@ protected initCurrentObject() : \YooKassa\Request\Payments\Payment\CreateCapture
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md
index 0f601e2b..d0a3213e 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestInterface.md
@@ -296,6 +296,6 @@ public setDeal(\YooKassa\Model\Deal\PaymentDealInfo|array|null $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestSerializer.md b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestSerializer.md
index 6c6d9338..1696c93d 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Payments\Payment\CreateCaptureRequestInterfac
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureResponse.md b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureResponse.md
index 6f2abaa0..cabf73fe 100644
--- a/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-Payment-CreateCaptureResponse.md
@@ -1844,6 +1844,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentResponse.md b/docs/classes/YooKassa-Request-Payments-PaymentResponse.md
index ec66fb04..7e404be3 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentResponse.md
@@ -1844,6 +1844,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentsRequest.md b/docs/classes/YooKassa-Request-Payments-PaymentsRequest.md
index ea80cd34..bdd2bd55 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentsRequest.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentsRequest.md
@@ -1384,6 +1384,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentsRequestBuilder.md b/docs/classes/YooKassa-Request-Payments-PaymentsRequestBuilder.md
index 64c0e558..49000986 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentsRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentsRequestBuilder.md
@@ -498,6 +498,6 @@ protected initCurrentObject() : \YooKassa\Request\Payments\PaymentsRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentsRequestInterface.md b/docs/classes/YooKassa-Request-Payments-PaymentsRequestInterface.md
index d39cb842..4ba2c306 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentsRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentsRequestInterface.md
@@ -765,6 +765,6 @@ public setPaymentMethod(string $value) : void
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentsRequestSerializer.md b/docs/classes/YooKassa-Request-Payments-PaymentsRequestSerializer.md
index ad201916..30d8e30b 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentsRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentsRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Payments\PaymentsRequestInterface $request) :
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payments-PaymentsResponse.md b/docs/classes/YooKassa-Request-Payments-PaymentsResponse.md
index 0a61d5ed..c0157527 100644
--- a/docs/classes/YooKassa-Request-Payments-PaymentsResponse.md
+++ b/docs/classes/YooKassa-Request-Payments-PaymentsResponse.md
@@ -389,6 +389,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-AbstractPayoutResponse.md b/docs/classes/YooKassa-Request-Payouts-AbstractPayoutResponse.md
index b44f12b9..fdfc7c15 100644
--- a/docs/classes/YooKassa-Request-Payouts-AbstractPayoutResponse.md
+++ b/docs/classes/YooKassa-Request-Payouts-AbstractPayoutResponse.md
@@ -978,6 +978,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequest.md b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequest.md
index 92278902..45f469b5 100644
--- a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequest.md
+++ b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequest.md
@@ -926,6 +926,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestBuilder.md b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestBuilder.md
index 7a58f344..525e7b86 100644
--- a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestBuilder.md
@@ -8,6 +8,92 @@
Класс билдера объектов запросов к API на создание платежа
+---
+### Examples
+Пример использования билдера
+
+```php
+try {
+ $builder = \YooKassa\Request\Payments\CreatePaymentRequest::builder();
+ $builder->setAmount(100)
+ ->setCurrency(\YooKassa\Model\CurrencyCode::RUB)
+ ->setCapture(true)
+ ->setDescription('Оплата заказа 112233')
+ ->setMetadata(array(
+ 'cms_name' => 'yoo_api_test',
+ 'order_id' => '112233',
+ 'language' => 'ru',
+ 'transaction_id' => '123-456-789',
+ ));
+
+ // Устанавливаем страницу для редиректа после оплаты
+ $builder->setConfirmation(array(
+ 'type' => \YooKassa\Model\ConfirmationType::REDIRECT,
+ 'returnUrl' => 'https://merchant-site.ru/payment-return-page',
+ ));
+
+ // Можем установить конкретный способ оплаты
+ $builder->setPaymentMethodData(\YooKassa\Model\PaymentMethodType::BANK_CARD);
+
+ // Составляем чек
+ $builder->setReceiptEmail('john.doe@merchant.com');
+ $builder->setReceiptPhone('71111111111');
+ // Добавим товар
+ $builder->addReceiptItem(
+ 'Платок Gucci',
+ 3000,
+ 1.0,
+ 2,
+ 'full_payment',
+ 'commodity'
+ );
+ // Добавим доставку
+ $builder->addReceiptShipping(
+ 'Delivery/Shipping/Доставка',
+ 100,
+ 1,
+ \YooKassa\Model\Receipt\PaymentMode::FULL_PAYMENT,
+ \YooKassa\Model\Receipt\PaymentSubject::SERVICE
+ );
+
+ // Можно добавить распределение денег по магазинам
+ $builder->setTransfers(array(
+ array(
+ 'account_id' => 123456,
+ 'amount' => array(
+ array(
+ 'value' => 1000,
+ 'currency' => \YooKassa\Model\CurrencyCode::RUB
+ )
+ ),
+ ),
+ array(
+ 'account_id' => 654321,
+ 'amount' => array(
+ array(
+ 'value' => 2000,
+ 'currency' => \YooKassa\Model\CurrencyCode::RUB
+ )
+ ),
+ )
+ ));
+
+ // Создаем объект запроса
+ $request = $builder->build();
+
+ // Можно изменить данные, если нужно
+ $request->setDescription($request->getDescription() . ' - merchant comment');
+
+ $idempotenceKey = uniqid('', true);
+ $response = $client->createPayment($request, $idempotenceKey);
+} catch (\Exception $e) {
+ $response = $e;
+}
+
+var_dump($response);
+
+```
+
---
### Constants
* No constants found
@@ -41,12 +127,6 @@
* [\YooKassa\Common\AbstractRequestBuilder](../classes/YooKassa-Common-AbstractRequestBuilder.md)
* \YooKassa\Request\Payouts\CreatePayoutRequestBuilder
----
-### Tags
-| Tag | Version | Description |
-| --- | ------- | ----------- |
-| todo: | | @example 02-builder.php 11 78 Пример использования билдера |
-
---
## Properties
@@ -327,6 +407,6 @@ protected initCurrentObject() : \YooKassa\Request\Payouts\CreatePayoutRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestInterface.md b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestInterface.md
index d1ca0106..002b8597 100644
--- a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestInterface.md
@@ -407,6 +407,6 @@ public setMetadata(\YooKassa\Model\Metadata|array|null $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestSerializer.md b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestSerializer.md
index d98b126f..9ed47fb2 100644
--- a/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Payouts-CreatePayoutRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Payouts\CreatePayoutRequestInterface $request
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-CreatePayoutResponse.md b/docs/classes/YooKassa-Request-Payouts-CreatePayoutResponse.md
index 730c40db..885d644e 100644
--- a/docs/classes/YooKassa-Request-Payouts-CreatePayoutResponse.md
+++ b/docs/classes/YooKassa-Request-Payouts-CreatePayoutResponse.md
@@ -977,6 +977,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-AbstractPayoutDestinationData.md b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-AbstractPayoutDestinationData.md
index 02150a08..77960371 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-AbstractPayoutDestinationData.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-AbstractPayoutDestinationData.md
@@ -407,6 +407,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCard.md b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCard.md
index 99daabb5..7a8462be 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCard.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCard.md
@@ -455,6 +455,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCardCard.md b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCardCard.md
index a8631264..362d5f91 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCardCard.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataBankCardCard.md
@@ -395,6 +395,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataFactory.md b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataFactory.md
index 1277ef42..297ea930 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataFactory.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataFactory.md
@@ -92,6 +92,6 @@ public factoryFromArray(array $data, string|null $type = null) : \YooKassa\Reque
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataYooMoney.md b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataYooMoney.md
index 5ef82bd8..37a2411e 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataYooMoney.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutDestinationData-PayoutDestinationDataYooMoney.md
@@ -483,6 +483,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Payouts-PayoutResponse.md b/docs/classes/YooKassa-Request-Payouts-PayoutResponse.md
index f7acad0a..831a4e1e 100644
--- a/docs/classes/YooKassa-Request-Payouts-PayoutResponse.md
+++ b/docs/classes/YooKassa-Request-Payouts-PayoutResponse.md
@@ -977,6 +977,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md b/docs/classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md
index 16276a23..67502039 100644
--- a/docs/classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md
+++ b/docs/classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md
@@ -27,11 +27,15 @@ Class AbstractReceipt
| public | [$fiscalProviderId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalProviderId) | | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. |
| public | [$fiscalStorageNumber](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalStorageNumber) | | Номер фискального накопителя в кассовом аппарате. |
| public | [$id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_id) | | Идентификатор чека в ЮKassa. |
-| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе |
+| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе. |
| public | [$object_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_object_id) | | Идентификатор объекта чека. |
| public | [$objectId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_objectId) | | Идентификатор объекта чека. |
-| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина |
-| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина |
+| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина. |
+| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина. |
+| public | [$receipt_industry_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_industry_details) | | Отраслевой реквизит чека. |
+| public | [$receipt_operational_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_operational_details) | | Операционный реквизит чека. |
+| public | [$receiptIndustryDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptIndustryDetails) | | Отраслевой реквизит чека. |
+| public | [$receiptOperationalDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptOperationalDetails) | | Операционный реквизит чека. |
| public | [$registered_at](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registered_at) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$registeredAt](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registeredAt) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$settlements](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_settlements) | | Перечень совершенных расчетов. |
@@ -60,6 +64,8 @@ Class AbstractReceipt
| public | [getItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getItems) | | Возвращает список товаров в заказ |
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getObjectId) | | Возвращает идентификатор платежа или возврата, для которого был сформирован чек. |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getOnBehalfOf) | | Возвращает идентификатор магазин |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getRegisteredAt) | | Возвращает дату и время формирования чека в фискальном накопителе |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getSettlements) | | Возвращает Массив оплат, обеспечивающих выдачу товара |
| public | [getStatus()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getStatus) | | Возвращает статус доставки данных для чека в онлайн-кассу |
@@ -79,6 +85,8 @@ Class AbstractReceipt
| public | [setItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setItems) | | Устанавливает список позиций в чеке |
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setObjectId) | | Устанавливает идентификатор платежа или возврата, для которого был сформирован чек |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setRegisteredAt) | | Устанавливает дату и время формирования чека в фискальном накопителе |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара |
| public | [setSpecificProperties()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setSpecificProperties) | | Установка свойств, присущих конкретному объекту |
@@ -225,7 +233,7 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Список товаров в заказе
+Список товаров в заказе.
**Type:** ReceiptResponseItemInterface[]
@@ -261,7 +269,7 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -273,13 +281,61 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
**Details:**
+
+#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
+
+#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+
+
+
+#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
+
+#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+
+
#### public $registered_at : \DateTime
---
@@ -526,7 +582,7 @@ public addSettlement(\YooKassa\Model\SettlementInterface $value) : mixed
#### public fromArray() : mixed
```php
-public fromArray(mixed $receiptData) : mixed
+public fromArray(mixed $sourceArray) : mixed
```
**Summary**
@@ -539,7 +595,7 @@ AbstractReceiptResponse constructor.
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
-| mixed | receiptData | |
+| mixed | sourceArray | |
##### Throws:
| Type | Description |
@@ -697,6 +753,40 @@ public getOnBehalfOf() : string|null
| --- | ------- | ----------- |
| inheritdoc | | |
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getRegisteredAt() : \DateTime
@@ -1116,6 +1206,60 @@ public setOnBehalfOf(string $value) : mixed
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setRegisteredAt() : mixed
@@ -1317,6 +1461,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md
index e7298208..e65d60be 100644
--- a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md
+++ b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md
@@ -90,12 +90,15 @@ var_dump($response);
| public | [builder()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_builder) | | Возвращает билдер объектов запросов создания платежа |
| public | [clearValidationError()](../classes/YooKassa-Common-AbstractRequest.md#method_clearValidationError) | | Очищает статус валидации текущего запроса |
| public | [fromArray()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getAdditionalUserProps) | | Возвращает дополнительный реквизит пользователя |
| public | [getCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getCustomer) | | Возвращает информацию о плательщике |
| public | [getItems()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getItems) | | Возвращает список позиций в текущем чеке |
| public | [getLastValidationError()](../classes/YooKassa-Common-AbstractRequest.md#method_getLastValidationError) | | Возвращает последнюю ошибку валидации |
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getObjectId) | | Возвращает Id объекта чека |
| public | [getObjectType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getObjectType) | | Возвращает тип объекта чека |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек. |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getSend()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getSend) | | Возвращает признак отложенной отправки чека. |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getSettlements) | | Возвращает массив оплат, обеспечивающих выдачу товара. |
| public | [getTaxSystemCode()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getTaxSystemCode) | | Возвращает код системы налогообложения |
@@ -107,11 +110,14 @@ var_dump($response);
| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setAdditionalUserProps) | | Устанавливает дополнительный реквизит пользователя |
| public | [setCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setCustomer) | | Устанавливает информацию о плательщике |
| public | [setItems()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setItems) | | Устанавливает список позиций в чеке |
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setObjectId) | | Устанавливает Id объекта чека |
| public | [setObjectType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setObjectType) | | Устанавливает тип объекта чека |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setOnBehalfOf) | | Устанавливает идентификатор магазина, от имени которого нужно отправить чек. |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setSend()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setSend) | | Устанавливает признак отложенной отправки чека. |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара. |
| public | [setTaxSystemCode()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения |
@@ -345,6 +351,23 @@ public fromArray(array|\Traversable $sourceArray) : mixed
**Returns:** mixed -
+
+#### public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps
+
+```php
+public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps
+```
+
+**Summary**
+
+Возвращает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+**Returns:** \YooKassa\Model\Receipt\AdditionalUserProps - Дополнительный реквизит пользователя
+
+
#### public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface
@@ -452,6 +475,40 @@ public getOnBehalfOf() : string
**Returns:** string -
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getSend() : bool
@@ -660,11 +717,33 @@ public offsetUnset(string $offset) : mixed
**Returns:** mixed -
+
+#### public setAdditionalUserProps() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
+
+```php
+public setAdditionalUserProps(\YooKassa\Model\Receipt\AdditionalUserProps|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
+```
+
+**Summary**
+
+Устанавливает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| \YooKassa\Model\Receipt\AdditionalUserProps OR array | value | Дополнительный реквизит пользователя |
+
+**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -
+
+
#### public setCustomer() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
```php
-public setCustomer(\YooKassa\Model\ReceiptCustomerInterface $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
+public setCustomer(\YooKassa\Model\ReceiptCustomerInterface|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
```
**Summary**
@@ -677,7 +756,7 @@ public setCustomer(\YooKassa\Model\ReceiptCustomerInterface $value) : \YooKassa\
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
-| \YooKassa\Model\ReceiptCustomerInterface | value | |
+| \YooKassa\Model\ReceiptCustomerInterface OR array | value | Информация о плательщике |
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -
@@ -787,6 +866,60 @@ public setOnBehalfOf(string $value) : mixed
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setSend() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
@@ -971,6 +1104,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md
index 6b3a09a0..ac192439 100644
--- a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md
@@ -91,6 +91,7 @@ var_dump($response);
| public | [__construct()](../classes/YooKassa-Common-AbstractRequestBuilder.md#method___construct) | | Конструктор, инициализирует пустой запрос, который в будущем начнём собирать |
| public | [addItem()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_addItem) | | Добавляет товар в чек |
| public | [build()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_build) | | Строит и возвращает объект запроса для отправки в API ЮKassa |
+| public | [setAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setAdditionalUserProps) | | Устанавливает дополнительный реквизит пользователя |
| public | [setAmount()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setAmount) | | Устанавливает сумму |
| public | [setCurrency()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setCurrency) | | Устанавливает валюту в которой будет происходить подтверждение оплаты заказа |
| public | [setCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setCustomer) | | Устанавливает информацию о пользователе |
@@ -99,6 +100,8 @@ var_dump($response);
| public | [setObjectType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setObjectType) | | Устанавливает тип объекта чека |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setOnBehalfOf) | | Устанавливает идентификатор магазина, от имени которого нужно отправить чек. |
| public | [setOptions()](../classes/YooKassa-Common-AbstractRequestBuilder.md#method_setOptions) | | Устанавливает свойства запроса из массива |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setReceiptOperationalDetails) | | Устанавливает отраслевой реквизит чека |
| public | [setSend()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setSend) | | Устанавливает признак отложенной отправки чека. |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара. |
| public | [setTaxSystemCode()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения |
@@ -220,6 +223,28 @@ public build(array|null $options = null) : \YooKassa\Request\Receipts\CreatePost
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequest|\YooKassa\Common\AbstractRequest - Инстанс объекта запроса
+
+#### public setAdditionalUserProps() : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
+
+```php
+public setAdditionalUserProps(\YooKassa\Model\Receipt\AdditionalUserProps|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
+```
+
+**Summary**
+
+Устанавливает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| \YooKassa\Model\Receipt\AdditionalUserProps OR array | value | Дополнительный реквизит пользователя |
+
+**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder - Инстанс билдера запросов
+
+
#### public setAmount() : self
@@ -408,6 +433,50 @@ public setOptions(array|\Traversable $options) : \YooKassa\Common\AbstractReques
**Returns:** \YooKassa\Common\AbstractRequestBuilder - Инстанс текущего билдера запросов
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека CreatePostReceiptRequestBuilder |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestBuilder.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder - Инстанс билдера запросов
+
+
#### public setSend() : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
@@ -529,6 +598,6 @@ protected initCurrentObject() : \YooKassa\Request\Receipts\CreatePostReceiptRequ
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md
index ae2baed8..c37d87ff 100644
--- a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md
@@ -16,19 +16,25 @@ Interface CreateReceiptRequestInterface
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
| public | [addItem()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_addItem) | | Добавляет товар в чек |
+| public | [getAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getAdditionalUserProps) | | Возвращает дополнительный реквизит пользователя |
| public | [getCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getCustomer) | | Возвращает информацию о плательщике. |
| public | [getItems()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getItems) | | Возвращает список товаров в заказе |
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getObjectId) | | Возвращает идентификатор объекта, для которого формируется чек |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getSend()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getSend) | | Возвращает признак отложенной отправки чека |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getSettlements) | | Возвращает Массив оплат, обеспечивающих выдачу товара |
| public | [getTaxSystemCode()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getTaxSystemCode) | | Возвращает код системы налогообложения |
| public | [getType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_getType) | | Возвращает тип чека в онлайн-кассе |
| public | [notEmpty()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_notEmpty) | | Проверяет есть ли в чеке хотя бы одна позиция |
+| public | [setAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setAdditionalUserProps) | | Устанавливает дополнительный реквизит пользователя |
| public | [setCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setCustomer) | | Устанавливает информацию о пользователе |
| public | [setItems()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setItems) | | Устанавливает список товаров чека |
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setObjectId) | | Устанавливает идентификатор объекта, для которого формируется чек |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setOnBehalfOf) | | Устанавливает идентификатор магазина, от имени которого нужно отправить чек. |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setSend()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setSend) | | Устанавливает признак отложенной отправки чека |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара |
| public | [setTaxSystemCode()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения |
@@ -50,8 +56,13 @@ Interface CreateReceiptRequestInterface
| property | | Информация о плательщике |
| property | | Код системы налогообложения. Число 1-6 |
| property | | Код системы налогообложения. Число 1-6 |
+| property | | Дополнительный реквизит пользователя |
+| property | | Дополнительный реквизит пользователя |
+| property | | Отраслевой реквизит чека |
+| property | | Отраслевой реквизит чека |
+| property | | Операционный реквизит чека |
+| property | | Операционный реквизит чека |
| property | | Список товаров в заказе |
-| property | | Информация о поставщике товара или услуги |
| property | | Массив оплат, обеспечивающих выдачу товара |
---
@@ -220,6 +231,127 @@ public setTaxSystemCode(int $value) : \YooKassa\Request\Receipts\CreatePostRecei
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -
+
+#### public getAdditionalUserProps() : mixed
+
+```php
+public getAdditionalUserProps() : mixed
+```
+
+**Summary**
+
+Возвращает дополнительный реквизит пользователя
+
+**Description**
+
+ @return AdditionalUserProps Дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+**Returns:** mixed -
+
+
+
+#### public setAdditionalUserProps() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
+
+```php
+public setAdditionalUserProps(\YooKassa\Model\Receipt\AdditionalUserProps $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface
+```
+
+**Summary**
+
+Устанавливает дополнительный реквизит пользователя
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| \YooKassa\Model\Receipt\AdditionalUserProps | value | Дополнительный реквизит пользователя |
+
+**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -
+
+
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** mixed -
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+**Returns:** mixed -
+
+
#### public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface
@@ -445,6 +577,6 @@ public notEmpty() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestSerializer.md b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestSerializer.md
index 2c0a727f..c7df78c4 100644
--- a/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface $r
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md b/docs/classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md
index 8b67beae..86219605 100644
--- a/docs/classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md
+++ b/docs/classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md
@@ -28,13 +28,17 @@
| public | [$fiscalProviderId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalProviderId) | | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. |
| public | [$fiscalStorageNumber](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalStorageNumber) | | Номер фискального накопителя в кассовом аппарате. |
| public | [$id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_id) | | Идентификатор чека в ЮKassa. |
-| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе |
+| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе. |
| public | [$object_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_object_id) | | Идентификатор объекта чека. |
| public | [$objectId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_objectId) | | Идентификатор объекта чека. |
-| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина |
-| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина |
+| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина. |
+| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина. |
| public | [$payment_id](../classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md#property_payment_id) | | Идентификатор платежа в ЮKassa |
| public | [$paymentId](../classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md#property_paymentId) | | Идентификатор платежа в ЮKassa |
+| public | [$receipt_industry_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_industry_details) | | Отраслевой реквизит чека. |
+| public | [$receipt_operational_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_operational_details) | | Операционный реквизит чека. |
+| public | [$receiptIndustryDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptIndustryDetails) | | Отраслевой реквизит чека. |
+| public | [$receiptOperationalDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptOperationalDetails) | | Операционный реквизит чека. |
| public | [$registered_at](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registered_at) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$registeredAt](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registeredAt) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$settlements](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_settlements) | | Перечень совершенных расчетов. |
@@ -64,6 +68,8 @@
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getObjectId) | | Возвращает идентификатор платежа или возврата, для которого был сформирован чек. |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getOnBehalfOf) | | Возвращает идентификатор магазин |
| public | [getPaymentId()](../classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md#method_getPaymentId) | | Возвращает идентификатор платежа |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getRegisteredAt) | | Возвращает дату и время формирования чека в фискальном накопителе |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getSettlements) | | Возвращает Массив оплат, обеспечивающих выдачу товара |
| public | [getStatus()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getStatus) | | Возвращает статус доставки данных для чека в онлайн-кассу |
@@ -84,6 +90,8 @@
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setObjectId) | | Устанавливает идентификатор платежа или возврата, для которого был сформирован чек |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек |
| public | [setPaymentId()](../classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md#method_setPaymentId) | | Устанавливает идентификатор платежа в ЮKassa |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setRegisteredAt) | | Устанавливает дату и время формирования чека в фискальном накопителе |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара |
| public | [setSpecificProperties()](../classes/YooKassa-Request-Receipts-PaymentReceiptResponse.md#method_setSpecificProperties) | | Установка свойств, присущих конкретному объекту |
@@ -249,7 +257,7 @@ LENGTH_PAYMENT_ID = 36
---
***Description***
-Список товаров в заказе
+Список товаров в заказе.
**Type:** ReceiptResponseItemInterface[]
@@ -288,7 +296,7 @@ LENGTH_PAYMENT_ID = 36
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -301,7 +309,7 @@ LENGTH_PAYMENT_ID = 36
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -333,6 +341,58 @@ LENGTH_PAYMENT_ID = 36
**Details:**
+
+#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
#### public $registered_at : \DateTime
---
@@ -769,6 +829,40 @@ public getPaymentId() : string
**Returns:** string - Идентификатор платежа
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getRegisteredAt() : \DateTime
@@ -1216,6 +1310,60 @@ public setPaymentId(string $value) : mixed
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setRegisteredAt() : mixed
@@ -1417,6 +1565,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseFactory.md b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseFactory.md
index 5913bc4d..fbb9cb23 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseFactory.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseFactory.md
@@ -65,6 +65,6 @@ public factory(array $data) : \YooKassa\Request\Receipts\AbstractReceiptResponse
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseInterface.md b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseInterface.md
index 1a576dac..66f8513d 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseInterface.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseInterface.md
@@ -214,6 +214,6 @@ public notEmpty() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItem.md b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItem.md
index e8d295f3..48a71770 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItem.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItem.md
@@ -10,22 +10,45 @@
---
### Constants
-* No constants found
+| Visibility | Name | Flag | Summary |
+| ----------:| ---- | ---- | ------- |
+| public | [COUNTRY_CODE_LENGTH](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#constant_COUNTRY_CODE_LENGTH) | | |
+| public | [MAX_DECLARATION_NUMBER_LENGTH](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#constant_MAX_DECLARATION_NUMBER_LENGTH) | | |
+| public | [MAX_PRODUCT_CODE_LENGTH](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#constant_MAX_PRODUCT_CODE_LENGTH) | | |
---
### Properties
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
-| public | [$amount](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_amount) | | Суммарная стоимость товара в копейках/центах |
-| public | [$description](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_description) | | Название товара (не более 128 символов). |
-| public | [$payment_mode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_payment_mode) | | Признак способа расчета |
-| public | [$payment_subject](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_payment_subject) | | Признак предмета расчета |
-| public | [$paymentMode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_paymentMode) | | Признак способа расчета |
-| public | [$paymentSubject](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_paymentSubject) | | Признак предмета расчета |
-| public | [$price](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_price) | | Цена товара |
-| public | [$quantity](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_quantity) | | Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы. |
-| public | [$vat_code](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_vat_code) | | Ставка НДС, число 1-6 |
-| public | [$vatCode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_vatCode) | | Ставка НДС, число 1-6 |
+| public | [$agent_type](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_agent_type) | | Тип посредника, реализующего товар или услугу |
+| public | [$agentType](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_agentType) | | Тип посредника, реализующего товар или услугу |
+| public | [$amount](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_amount) | | Суммарная стоимость покупаемого товара в копейках/центах |
+| public | [$country_of_origin_code](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_country_of_origin_code) | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| public | [$countryOfOriginCode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_countryOfOriginCode) | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| public | [$customs_declaration_number](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_customs_declaration_number) | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| public | [$customsDeclarationNumber](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_customsDeclarationNumber) | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| public | [$description](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_description) | | Наименование товара (тег в 54 ФЗ — 1030) |
+| public | [$excise](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_excise) | | Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229) |
+| public | [$mark_code_info](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_mark_code_info) | | Код товара (тег в 54 ФЗ — 1163) |
+| public | [$mark_mode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_mark_mode) | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| public | [$mark_quantity](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_mark_quantity) | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| public | [$markCodeInfo](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_markCodeInfo) | | Код товара (тег в 54 ФЗ — 1163) |
+| public | [$markMode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_markMode) | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| public | [$markQuantity](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_markQuantity) | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| public | [$measure](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_measure) | | Мера количества предмета расчета (тег в 54 ФЗ — 2108) |
+| public | [$payment_mode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_payment_mode) | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| public | [$payment_subject](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_payment_subject) | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| public | [$payment_subject_industry_details](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_payment_subject_industry_details) | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| public | [$paymentMode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_paymentMode) | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| public | [$paymentSubject](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_paymentSubject) | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| public | [$paymentSubjectIndustryDetails](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_paymentSubjectIndustryDetails) | | Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260) |
+| public | [$price](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_price) | | Цена товара (тег в 54 ФЗ — 1079) |
+| public | [$product_code](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_product_code) | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| public | [$productCode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_productCode) | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| public | [$quantity](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_quantity) | | Количество (тег в 54 ФЗ — 1023) |
+| public | [$supplier](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_supplier) | | Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224) |
+| public | [$vat_code](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_vat_code) | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
+| public | [$vatCode](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#property_vatCode) | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
---
### Methods
@@ -37,11 +60,21 @@
| public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства |
| public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство |
| public | [fromArray()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива |
+| public | [getAgentType()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getAgentType) | | Возвращает тип посредника, реализующего товар или услугу |
| public | [getAmount()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getAmount) | | Возвращает общую стоимость покупаемого товара в копейках/центах |
+| public | [getCountryOfOriginCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getCountryOfOriginCode) | | Возвращает код страны происхождения товара по общероссийскому классификатору стран мира |
+| public | [getCustomsDeclarationNumber()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getCustomsDeclarationNumber) | | Возвращает номер таможенной декларации |
| public | [getDescription()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getDescription) | | Возвращает наименование товара |
+| public | [getExcise()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getExcise) | | Возвращает сумму акциза товара с учетом копеек |
+| public | [getMarkCodeInfo()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getMarkCodeInfo) | | Возвращает код товара |
+| public | [getMarkMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getMarkMode) | | Возвращает режим обработки кода маркировки |
+| public | [getMarkQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getMarkQuantity) | | Возвращает дробное количество маркированного товара |
+| public | [getMeasure()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getMeasure) | | Возвращает меру количества предмета расчета |
| public | [getPaymentMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getPaymentMode) | | Возвращает признак способа расчета |
| public | [getPaymentSubject()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getPaymentSubject) | | Возвращает признак предмета расчета |
+| public | [getPaymentSubjectIndustryDetails()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getPaymentSubjectIndustryDetails) | | Возвращает отраслевой реквизит чека |
| public | [getPrice()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getPrice) | | Возвращает цену товара |
+| public | [getProductCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getProductCode) | | Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [getQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getQuantity) | | Возвращает количество товара |
| public | [getSupplier()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getSupplier) | | Возвращает информацию о поставщике товара или услуги |
| public | [getVatCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_getVatCode) | | Возвращает ставку НДС |
@@ -50,10 +83,20 @@
| public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства |
| public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства |
| public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство |
+| public | [setAgentType()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setAgentType) | | Устанавливает тип посредника, реализующего товар или услугу |
+| public | [setCountryOfOriginCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setCountryOfOriginCode) | | Устанавливает код страны происхождения товара по общероссийскому классификатору стран мира |
+| public | [setCustomsDeclarationNumber()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setCustomsDeclarationNumber) | | Устанавливает номер таможенной декларации (от 1 до 32 символов) |
| public | [setDescription()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setDescription) | | Устанавливает наименование товара |
+| public | [setExcise()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setExcise) | | Устанавливает сумму акциза товара с учетом копеек |
+| public | [setMarkCodeInfo()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setMarkCodeInfo) | | Устанавливает код товара |
+| public | [setMarkMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setMarkMode) | | Устанавливает режим обработки кода маркировки |
+| public | [setMarkQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setMarkQuantity) | | Устанавливает дробное количество маркированного товара |
+| public | [setMeasure()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setMeasure) | | Устанавливает меру количества предмета расчета |
| public | [setPaymentMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setPaymentMode) | | Устанавливает признак способа расчета |
| public | [setPaymentSubject()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setPaymentSubject) | | Устанавливает признак предмета расчета |
+| public | [setPaymentSubjectIndustryDetails()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setPaymentSubjectIndustryDetails) | | Устанавливает отраслевой реквизит чека |
| public | [setPrice()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setPrice) | | Устанавливает цену товара |
+| public | [setProductCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setProductCode) | | Устанавливает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [setQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setQuantity) | | Устанавливает количество покупаемого товара |
| public | [setSupplier()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setSupplier) | | Устанавливает информацию о поставщике товара или услуги. |
| public | [setVatCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md#method_setVatCode) | | Устанавливает ставку НДС |
@@ -70,26 +113,218 @@
* Implements:
* [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+---
+## Constants
+
+###### COUNTRY_CODE_LENGTH
+```php
+COUNTRY_CODE_LENGTH = 2 : int
+```
+
+
+
+###### MAX_DECLARATION_NUMBER_LENGTH
+```php
+MAX_DECLARATION_NUMBER_LENGTH = 32 : int
+```
+
+
+
+###### MAX_PRODUCT_CODE_LENGTH
+```php
+MAX_PRODUCT_CODE_LENGTH = 96 : int
+```
+
+
+
---
## Properties
+
+#### public $agent_type : string
+---
+***Description***
+
+Тип посредника, реализующего товар или услугу
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $agentType : string
+---
+***Description***
+
+Тип посредника, реализующего товар или услугу
+
+**Type:** string
+
+**Details:**
+
+
#### public $amount : float
---
***Description***
-Суммарная стоимость товара в копейках/центах
+Суммарная стоимость покупаемого товара в копейках/центах
**Type:** float
**Details:**
+
+#### public $country_of_origin_code : string
+---
+***Description***
+
+Код страны происхождения товара (тег в 54 ФЗ — 1230)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $countryOfOriginCode : string
+---
+***Description***
+
+Код страны происхождения товара (тег в 54 ФЗ — 1230)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $customs_declaration_number : string
+---
+***Description***
+
+Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $customsDeclarationNumber : string
+---
+***Description***
+
+Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+
+**Type:** string
+
+**Details:**
+
+
#### public $description : string
---
***Description***
-Название товара (не более 128 символов).
+Наименование товара (тег в 54 ФЗ — 1030)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $excise : float
+---
+***Description***
+
+Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
+
+**Type:** float
+
+**Details:**
+
+
+
+#### public $mark_code_info : \YooKassa\Model\Receipt\MarkCodeInfo
+---
+***Description***
+
+Код товара (тег в 54 ФЗ — 1163)
+
+**Type:** MarkCodeInfo
+
+**Details:**
+
+
+
+#### public $mark_mode : string
+---
+***Description***
+
+Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $mark_quantity : \YooKassa\Model\Receipt\MarkQuantity
+---
+***Description***
+
+Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+
+**Type:** MarkQuantity
+
+**Details:**
+
+
+
+#### public $markCodeInfo : \YooKassa\Model\Receipt\MarkCodeInfo
+---
+***Description***
+
+Код товара (тег в 54 ФЗ — 1163)
+
+**Type:** MarkCodeInfo
+
+**Details:**
+
+
+
+#### public $markMode : string
+---
+***Description***
+
+Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $markQuantity : \YooKassa\Model\Receipt\MarkQuantity
+---
+***Description***
+
+Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+
+**Type:** MarkQuantity
+
+**Details:**
+
+
+
+#### public $measure : string
+---
+***Description***
+
+Мера количества предмета расчета (тег в 54 ФЗ — 2108)
**Type:** string
@@ -101,7 +336,7 @@
---
***Description***
-Признак способа расчета
+Признак способа расчета (тег в 54 ФЗ — 1214)
**Type:** string
@@ -113,19 +348,31 @@
---
***Description***
-Признак предмета расчета
+Признак предмета расчета (тег в 54 ФЗ — 1212)
**Type:** string
**Details:**
+
+#### public $payment_subject_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
#### public $paymentMode : string
---
***Description***
-Признак способа расчета
+Признак способа расчета (тег в 54 ФЗ — 1214)
**Type:** string
@@ -137,43 +384,91 @@
---
***Description***
-Признак предмета расчета
+Признак предмета расчета (тег в 54 ФЗ — 1212)
**Type:** string
**Details:**
+
+#### public $paymentSubjectIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+
+**Type:** IndustryDetails[]
+
+**Details:**
+
+
#### public $price : \YooKassa\Model\AmountInterface
---
***Description***
-Цена товара
+Цена товара (тег в 54 ФЗ — 1079)
**Type:** AmountInterface
**Details:**
+
+#### public $product_code : string
+---
+***Description***
+
+Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+
+**Type:** string
+
+**Details:**
+
+
+
+#### public $productCode : string
+---
+***Description***
+
+Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+
+**Type:** string
+
+**Details:**
+
+
#### public $quantity : float
---
***Description***
-Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы.
+Количество (тег в 54 ФЗ — 1023)
**Type:** float
**Details:**
+
+#### public $supplier : \YooKassa\Model\Supplier
+---
+***Description***
+
+Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
+
+**Type:** Supplier
+
+**Details:**
+
+
#### public $vat_code : int
---
***Description***
-Ставка НДС, число 1-6
+Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
**Type:** int
@@ -185,7 +480,7 @@
---
***Description***
-Ставка НДС, число 1-6
+Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
**Type:** int
@@ -310,7 +605,7 @@ public __unset(string $propertyName) : mixed
#### public fromArray() : mixed
```php
-public fromArray(array $itemData) : mixed
+public fromArray(array $sourceArray) : mixed
```
**Summary**
@@ -323,11 +618,28 @@ public fromArray(array $itemData) : mixed
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
-| array | itemData | Массив с информацией о товаре, пришедший от API |
+| array | sourceArray | Массив с информацией о товаре, пришедший от API |
**Returns:** mixed -
+
+#### public getAgentType() : string
+
+```php
+public getAgentType() : string
+```
+
+**Summary**
+
+Возвращает тип посредника, реализующего товар или услугу
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string - Тип посредника
+
+
#### public getAmount() : int
@@ -345,6 +657,40 @@ public getAmount() : int
**Returns:** int - Сумма стоимости покупаемого товара
+
+#### public getCountryOfOriginCode() : string|null
+
+```php
+public getCountryOfOriginCode() : string|null
+```
+
+**Summary**
+
+Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string|null - Код страны происхождения товара
+
+
+
+#### public getCustomsDeclarationNumber() : string|null
+
+```php
+public getCustomsDeclarationNumber() : string|null
+```
+
+**Summary**
+
+Возвращает номер таможенной декларации
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string|null - Номер таможенной декларации (от 1 до 32 символов)
+
+
#### public getDescription() : string
@@ -362,6 +708,91 @@ public getDescription() : string
**Returns:** string - Наименование товара
+
+#### public getExcise() : float|null
+
+```php
+public getExcise() : float|null
+```
+
+**Summary**
+
+Возвращает сумму акциза товара с учетом копеек
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** float|null - Сумма акциза товара с учетом копеек
+
+
+
+#### public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Summary**
+
+Возвращает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo - Код товара
+
+
+
+#### public getMarkMode() : string
+
+```php
+public getMarkMode() : string
+```
+
+**Summary**
+
+Возвращает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string - Режим обработки кода маркировки
+
+
+
+#### public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+
+```php
+public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+```
+
+**Summary**
+
+Возвращает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkQuantity - Дробное количество маркированного товара
+
+
+
+#### public getMeasure() : string
+
+```php
+public getMeasure() : string
+```
+
+**Summary**
+
+Возвращает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string - Мера количества предмета расчета
+
+
#### public getPaymentMode() : string|null
@@ -396,6 +827,23 @@ public getPaymentSubject() : string|null
**Returns:** string|null - Признак предмета расчета
+
+#### public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
#### public getPrice() : \YooKassa\Model\AmountInterface
@@ -413,6 +861,23 @@ public getPrice() : \YooKassa\Model\AmountInterface
**Returns:** \YooKassa\Model\AmountInterface - Цена товара
+
+#### public getProductCode() : string|null
+
+```php
+public getProductCode() : string|null
+```
+
+**Summary**
+
+Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+**Returns:** string|null - Код товара
+
+
#### public getQuantity() : float
@@ -574,6 +1039,82 @@ public offsetUnset(string $offset) : mixed
**Returns:** mixed -
+
+#### public setAgentType() : mixed
+
+```php
+public setAgentType(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает тип посредника, реализующего товар или услугу
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Тип посредника |
+
+**Returns:** mixed -
+
+
+
+#### public setCountryOfOriginCode() : mixed
+
+```php
+public setCountryOfOriginCode(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает код страны происхождения товара по общероссийскому классификатору стран мира
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Код страны происхождения товара |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если в качестве аргумента была передана не строка |
+
+**Returns:** mixed -
+
+
+
+#### public setCustomsDeclarationNumber() : mixed
+
+```php
+public setCustomsDeclarationNumber(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает номер таможенной декларации (от 1 до 32 символов)
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Номер таможенной декларации |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если в качестве аргумента была передана не строка |
+
+**Returns:** mixed -
+
+
#### public setDescription() : mixed
@@ -602,6 +1143,121 @@ public setDescription(string $value) : mixed
**Returns:** mixed -
+
+#### public setExcise() : mixed
+
+```php
+public setExcise(float $value) : mixed
+```
+
+**Summary**
+
+Устанавливает сумму акциза товара с учетом копеек
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| float | value | Сумма акциза товара с учетом копеек |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если в качестве аргумента было передано не число |
+
+**Returns:** mixed -
+
+
+
+#### public setMarkCodeInfo() : mixed
+
+```php
+public setMarkCodeInfo(array|\YooKassa\Model\Receipt\MarkCodeInfo $value) : mixed
+```
+
+**Summary**
+
+Устанавливает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\MarkCodeInfo | value | Код товара |
+
+**Returns:** mixed -
+
+
+
+#### public setMarkMode() : mixed
+
+```php
+public setMarkMode(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Режим обработки кода маркировки |
+
+**Returns:** mixed -
+
+
+
+#### public setMarkQuantity() : mixed
+
+```php
+public setMarkQuantity(array|\YooKassa\Model\Receipt\MarkQuantity $value) : mixed
+```
+
+**Summary**
+
+Устанавливает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\MarkQuantity | value | Дробное количество маркированного товара |
+
+**Returns:** mixed -
+
+
+
+#### public setMeasure() : mixed
+
+```php
+public setMeasure(string $value) : mixed
+```
+
+**Summary**
+
+Устанавливает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string | value | Мера количества предмета расчета |
+
+**Returns:** mixed -
+
+
#### public setPaymentMode() : mixed
@@ -656,6 +1312,28 @@ public setPaymentSubject(string $value) : mixed
**Returns:** mixed -
+
+#### public setPaymentSubjectIndustryDetails() : mixed
+
+```php
+public setPaymentSubjectIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+**Returns:** mixed -
+
+
#### public setPrice() : mixed
@@ -678,6 +1356,33 @@ public setPrice(\YooKassa\Model\AmountInterface $value) : mixed
**Returns:** mixed -
+
+#### public setProductCode() : mixed
+
+```php
+public setProductCode(string|\YooKassa\Helpers\ProductCode $value) : mixed
+```
+
+**Summary**
+
+Устанавливает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItem](../classes/YooKassa-Request-Receipts-ReceiptResponseItem.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| string OR \YooKassa\Helpers\ProductCode | value | Код товара |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если в качестве аргумента была передана не строка |
+
+**Returns:** mixed -
+
+
#### public setQuantity() : mixed
@@ -808,6 +1513,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md
index a8270210..cde085fe 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md
@@ -16,10 +16,19 @@ Interface ReceiptItemInterface
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
| public | [getAmount()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getAmount) | | Возвращает общую стоимость покупаемого товара в копейках/центах |
+| public | [getCountryOfOriginCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getCountryOfOriginCode) | | Возвращает код страны происхождения товара по общероссийскому классификатору стран мира |
+| public | [getCustomsDeclarationNumber()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getCustomsDeclarationNumber) | | Возвращает номер таможенной декларации |
| public | [getDescription()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getDescription) | | Возвращает название товара |
+| public | [getExcise()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getExcise) | | Возвращает сумму акциза товара с учетом копеек |
+| public | [getMarkCodeInfo()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getMarkCodeInfo) | | Возвращает код товара |
+| public | [getMarkMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getMarkMode) | | Возвращает режим обработки кода маркировки |
+| public | [getMarkQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getMarkQuantity) | | Возвращает дробное количество маркированного товара |
+| public | [getMeasure()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getMeasure) | | Возвращает меру количества предмета расчета |
| public | [getPaymentMode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getPaymentMode) | | Возвращает признак способа расчета |
| public | [getPaymentSubject()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getPaymentSubject) | | Возвращает признак предмета расчета |
+| public | [getPaymentSubjectIndustryDetails()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getPaymentSubjectIndustryDetails) | | Возвращает отраслевой реквизит чека |
| public | [getPrice()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getPrice) | | Возвращает цену товара |
+| public | [getProductCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getProductCode) | | Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке |
| public | [getQuantity()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getQuantity) | | Возвращает количество товара |
| public | [getSupplier()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getSupplier) | | Возвращает информацию о поставщике товара или услуги |
| public | [getVatCode()](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md#method_getVatCode) | | Возвращает ставку НДС |
@@ -33,12 +42,33 @@ Interface ReceiptItemInterface
### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
-| property-read | | Название товара (не более 128 символов). |
-| property-read | | Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы. |
-| property-read | | Суммарная стоимость товара в копейках/центах |
-| property-read | | Цена товара |
-| property-read | | Ставка НДС, число 1-6 |
-| property-read | | Ставка НДС, число 1-6 |
+| property-read | | Наименование товара (тег в 54 ФЗ — 1030) |
+| property-read | | Количество (тег в 54 ФЗ — 1023) |
+| property-read | | Суммарная стоимость покупаемого товара в копейках/центах |
+| property-read | | Цена товара (тег в 54 ФЗ — 1079) |
+| property-read | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
+| property-read | | Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199) |
+| property-read | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| property-read | | Признак предмета расчета (тег в 54 ФЗ — 1212) |
+| property-read | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| property-read | | Признак способа расчета (тег в 54 ФЗ — 1214) |
+| property-read | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| property-read | | Код страны происхождения товара (тег в 54 ФЗ — 1230) |
+| property-read | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| property-read | | Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231 |
+| property-read | | Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229) |
+| property-read | | Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224) |
+| property-read | | Тип посредника, реализующего товар или услугу |
+| property-read | | Тип посредника, реализующего товар или услугу |
+| property-read | | Код товара (тег в 54 ФЗ — 1163) |
+| property-read | | Код товара (тег в 54 ФЗ — 1163) |
+| property-read | | Мера количества предмета расчета (тег в 54 ФЗ — 2108) |
+| property-read | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| property-read | | Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162) |
+| property-read | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| property-read | | Режим обработки кода маркировки (тег в 54 ФЗ — 2102) |
+| property-read | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
+| property-read | | Дробное количество маркированного товара (тег в 54 ФЗ — 1291) |
---
## Methods
@@ -161,6 +191,159 @@ public getPaymentMode() : string|null
**Returns:** string|null - Признак способа расчета
+
+#### public getProductCode() : string|null
+
+```php
+public getProductCode() : string|null
+```
+
+**Summary**
+
+Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** string|null - Код товара
+
+
+
+#### public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+
+```php
+public getMarkCodeInfo() : \YooKassa\Model\Receipt\MarkCodeInfo
+```
+
+**Summary**
+
+Возвращает код товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkCodeInfo - Код товара
+
+
+
+#### public getMeasure() : string
+
+```php
+public getMeasure() : string
+```
+
+**Summary**
+
+Возвращает меру количества предмета расчета
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** string - Мера количества предмета расчета
+
+
+
+#### public getMarkMode() : string
+
+```php
+public getMarkMode() : string
+```
+
+**Summary**
+
+Возвращает режим обработки кода маркировки
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** string - Режим обработки кода маркировки
+
+
+
+#### public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+
+```php
+public getMarkQuantity() : \YooKassa\Model\Receipt\MarkQuantity
+```
+
+**Summary**
+
+Возвращает дробное количество маркированного товара
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\MarkQuantity - Дробное количество маркированного товара
+
+
+
+#### public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getPaymentSubjectIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getCountryOfOriginCode() : string|null
+
+```php
+public getCountryOfOriginCode() : string|null
+```
+
+**Summary**
+
+Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** string|null - Код страны происхождения товара
+
+
+
+#### public getCustomsDeclarationNumber() : string|null
+
+```php
+public getCustomsDeclarationNumber() : string|null
+```
+
+**Summary**
+
+Возвращает номер таможенной декларации
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** string|null - Номер таможенной декларации (от 1 до 32 символов)
+
+
+
+#### public getExcise() : float|null
+
+```php
+public getExcise() : float|null
+```
+
+**Summary**
+
+Возвращает сумму акциза товара с учетом копеек
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
+
+**Returns:** float|null - Сумма акциза товара с учетом копеек
+
+
#### public getSupplier() : \YooKassa\Model\SupplierInterface
@@ -175,7 +358,7 @@ public getSupplier() : \YooKassa\Model\SupplierInterface
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\ReceiptResponseItemInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseItemInterface.md)
-**Returns:** \YooKassa\Model\SupplierInterface -
+**Returns:** \YooKassa\Model\SupplierInterface - Информация о поставщике товара или услуги
@@ -195,6 +378,6 @@ public getSupplier() : \YooKassa\Model\SupplierInterface
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequest.md b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequest.md
index 142a0032..e9288616 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequest.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequest.md
@@ -1144,6 +1144,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestBuilder.md b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestBuilder.md
index 962bb7fa..e3f6e2d1 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestBuilder.md
@@ -411,6 +411,6 @@ protected initCurrentObject() : \YooKassa\Request\Receipts\ReceiptsRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestInterface.md b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestInterface.md
index 496259e6..785ab6d9 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestInterface.md
@@ -378,6 +378,6 @@ public hasLimit() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestSerializer.md b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestSerializer.md
index 238a0d44..c94afe2f 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptsRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Receipts\ReceiptsRequestInterface $request) :
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-ReceiptsResponse.md b/docs/classes/YooKassa-Request-Receipts-ReceiptsResponse.md
index eca5624d..9207a7ab 100644
--- a/docs/classes/YooKassa-Request-Receipts-ReceiptsResponse.md
+++ b/docs/classes/YooKassa-Request-Receipts-ReceiptsResponse.md
@@ -142,6 +142,6 @@ public hasNextCursor() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-RefundReceiptResponse.md b/docs/classes/YooKassa-Request-Receipts-RefundReceiptResponse.md
index 91e694bd..2a429508 100644
--- a/docs/classes/YooKassa-Request-Receipts-RefundReceiptResponse.md
+++ b/docs/classes/YooKassa-Request-Receipts-RefundReceiptResponse.md
@@ -28,11 +28,15 @@
| public | [$fiscalProviderId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalProviderId) | | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. |
| public | [$fiscalStorageNumber](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalStorageNumber) | | Номер фискального накопителя в кассовом аппарате. |
| public | [$id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_id) | | Идентификатор чека в ЮKassa. |
-| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе |
+| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе. |
| public | [$object_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_object_id) | | Идентификатор объекта чека. |
| public | [$objectId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_objectId) | | Идентификатор объекта чека. |
-| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина |
-| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина |
+| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина. |
+| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина. |
+| public | [$receipt_industry_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_industry_details) | | Отраслевой реквизит чека. |
+| public | [$receipt_operational_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_operational_details) | | Операционный реквизит чека. |
+| public | [$receiptIndustryDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptIndustryDetails) | | Отраслевой реквизит чека. |
+| public | [$receiptOperationalDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptOperationalDetails) | | Операционный реквизит чека. |
| public | [$refund_id](../classes/YooKassa-Request-Receipts-RefundReceiptResponse.md#property_refund_id) | | Идентификатор возврата в ЮKassa. |
| public | [$refundId](../classes/YooKassa-Request-Receipts-RefundReceiptResponse.md#property_refundId) | | Идентификатор возврата в ЮKassa. |
| public | [$registered_at](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registered_at) | | Дата и время формирования чека в фискальном накопителе. |
@@ -63,6 +67,8 @@
| public | [getItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getItems) | | Возвращает список товаров в заказ |
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getObjectId) | | Возвращает идентификатор платежа или возврата, для которого был сформирован чек. |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getOnBehalfOf) | | Возвращает идентификатор магазин |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getRefundId()](../classes/YooKassa-Request-Receipts-RefundReceiptResponse.md#method_getRefundId) | | Возвращает идентификатор возврата |
| public | [getRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getRegisteredAt) | | Возвращает дату и время формирования чека в фискальном накопителе |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getSettlements) | | Возвращает Массив оплат, обеспечивающих выдачу товара |
@@ -83,6 +89,8 @@
| public | [setItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setItems) | | Устанавливает список позиций в чеке |
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setObjectId) | | Устанавливает идентификатор платежа или возврата, для которого был сформирован чек |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setRefundId()](../classes/YooKassa-Request-Receipts-RefundReceiptResponse.md#method_setRefundId) | | Устанавливает идентификатор возврата в ЮKassa |
| public | [setRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setRegisteredAt) | | Устанавливает дату и время формирования чека в фискальном накопителе |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара |
@@ -249,7 +257,7 @@ LENGTH_REFUND_ID = 36
---
***Description***
-Список товаров в заказе
+Список товаров в заказе.
**Type:** ReceiptResponseItemInterface[]
@@ -288,7 +296,7 @@ LENGTH_REFUND_ID = 36
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -301,7 +309,7 @@ LENGTH_REFUND_ID = 36
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -309,6 +317,58 @@ LENGTH_REFUND_ID = 36
* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
#### public $refund_id : string
---
@@ -752,6 +812,40 @@ public getOnBehalfOf() : string|null
| --- | ------- | ----------- |
| inheritdoc | | |
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getRefundId() : string
@@ -1188,6 +1282,60 @@ public setOnBehalfOf(string $value) : mixed
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setRefundId() : mixed
@@ -1417,6 +1565,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Receipts-SimpleReceiptResponse.md b/docs/classes/YooKassa-Request-Receipts-SimpleReceiptResponse.md
index 532c1ac0..7de46dae 100644
--- a/docs/classes/YooKassa-Request-Receipts-SimpleReceiptResponse.md
+++ b/docs/classes/YooKassa-Request-Receipts-SimpleReceiptResponse.md
@@ -27,11 +27,15 @@
| public | [$fiscalProviderId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalProviderId) | | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. |
| public | [$fiscalStorageNumber](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalStorageNumber) | | Номер фискального накопителя в кассовом аппарате. |
| public | [$id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_id) | | Идентификатор чека в ЮKassa. |
-| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе |
+| public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_items) | | Список товаров в заказе. |
| public | [$object_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_object_id) | | Идентификатор объекта чека. |
| public | [$objectId](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_objectId) | | Идентификатор объекта чека. |
-| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина |
-| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина |
+| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_on_behalf_of) | | Идентификатор магазина. |
+| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_onBehalfOf) | | Идентификатор магазина. |
+| public | [$receipt_industry_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_industry_details) | | Отраслевой реквизит чека. |
+| public | [$receipt_operational_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receipt_operational_details) | | Операционный реквизит чека. |
+| public | [$receiptIndustryDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptIndustryDetails) | | Отраслевой реквизит чека. |
+| public | [$receiptOperationalDetails](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_receiptOperationalDetails) | | Операционный реквизит чека. |
| public | [$registered_at](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registered_at) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$registeredAt](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_registeredAt) | | Дата и время формирования чека в фискальном накопителе. |
| public | [$settlements](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_settlements) | | Перечень совершенных расчетов. |
@@ -60,6 +64,8 @@
| public | [getItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getItems) | | Возвращает список товаров в заказ |
| public | [getObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getObjectId) | | Возвращает идентификатор платежа или возврата, для которого был сформирован чек. |
| public | [getOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getOnBehalfOf) | | Возвращает идентификатор магазин |
+| public | [getReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptIndustryDetails) | | Возвращает отраслевой реквизит чека |
+| public | [getReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getReceiptOperationalDetails) | | Возвращает операционный реквизит чека |
| public | [getRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getRegisteredAt) | | Возвращает дату и время формирования чека в фискальном накопителе |
| public | [getSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getSettlements) | | Возвращает Массив оплат, обеспечивающих выдачу товара |
| public | [getStatus()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getStatus) | | Возвращает статус доставки данных для чека в онлайн-кассу |
@@ -79,6 +85,8 @@
| public | [setItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setItems) | | Устанавливает список позиций в чеке |
| public | [setObjectId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setObjectId) | | Устанавливает идентификатор платежа или возврата, для которого был сформирован чек |
| public | [setOnBehalfOf()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setOnBehalfOf) | | Возвращает идентификатор магазина, от имени которого нужно отправить чек |
+| public | [setReceiptIndustryDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptIndustryDetails) | | Устанавливает отраслевой реквизит чека |
+| public | [setReceiptOperationalDetails()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setReceiptOperationalDetails) | | Устанавливает операционный реквизит чека |
| public | [setRegisteredAt()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setRegisteredAt) | | Устанавливает дату и время формирования чека в фискальном накопителе |
| public | [setSettlements()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setSettlements) | | Устанавливает массив оплат, обеспечивающих выдачу товара |
| public | [setSpecificProperties()](../classes/YooKassa-Request-Receipts-SimpleReceiptResponse.md#method_setSpecificProperties) | | Установка свойств, присущих конкретному объекту |
@@ -235,7 +243,7 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Список товаров в заказе
+Список товаров в заказе.
**Type:** ReceiptResponseItemInterface[]
@@ -274,7 +282,7 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -287,7 +295,7 @@ LENGTH_RECEIPT_ID = 39
---
***Description***
-Идентификатор магазина
+Идентификатор магазина.
**Type:** string
@@ -295,6 +303,58 @@ LENGTH_RECEIPT_ID = 39
* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]
+---
+***Description***
+
+Отраслевой реквизит чека.
+
+**Type:** IndustryDetails[]
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
+
+#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
+---
+***Description***
+
+Операционный реквизит чека.
+
+**Type:** OperationalDetails
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+
#### public $registered_at : \DateTime
---
@@ -714,6 +774,40 @@ public getOnBehalfOf() : string|null
| --- | ------- | ----------- |
| inheritdoc | | |
+
+#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+
+```php
+public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]
+```
+
+**Summary**
+
+Возвращает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\IndustryDetails[] - Отраслевой реквизит чека
+
+
+
+#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+
+```php
+public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails
+```
+
+**Summary**
+
+Возвращает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+**Returns:** \YooKassa\Model\Receipt\OperationalDetails - Операционный реквизит чека
+
+
#### public getRegisteredAt() : \DateTime
@@ -1133,6 +1227,60 @@ public setOnBehalfOf(string $value) : mixed
**Returns:** mixed -
+
+#### public setReceiptIndustryDetails() : mixed
+
+```php
+public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[] $value) : mixed
+```
+
+**Summary**
+
+Устанавливает отраслевой реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\IndustryDetails[] | value | Отраслевой реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
+
+#### public setReceiptOperationalDetails() : mixed
+
+```php
+public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails $value) : mixed
+```
+
+**Summary**
+
+Устанавливает операционный реквизит чека
+
+**Details:**
+* Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md)
+
+##### Parameters:
+| Type | Name | Description |
+| ---- | ---- | ----------- |
+| array OR \YooKassa\Model\Receipt\OperationalDetails | value | Операционный реквизит чека |
+
+##### Throws:
+| Type | Description |
+| ---- | ----------- |
+| \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Выбрасывается если переданный аргумент - не массив |
+
+**Returns:** mixed -
+
+
#### public setRegisteredAt() : mixed
@@ -1334,6 +1482,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-AbstractRefundResponse.md b/docs/classes/YooKassa-Request-Refunds-AbstractRefundResponse.md
index 9b2468e7..b09e3645 100644
--- a/docs/classes/YooKassa-Request-Refunds-AbstractRefundResponse.md
+++ b/docs/classes/YooKassa-Request-Refunds-AbstractRefundResponse.md
@@ -959,6 +959,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequest.md b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequest.md
index 1b25cba2..7b2b837f 100644
--- a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequest.md
+++ b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequest.md
@@ -980,6 +980,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestBuilder.md b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestBuilder.md
index 0f543f11..9157ac5a 100644
--- a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestBuilder.md
@@ -606,6 +606,6 @@ protected initCurrentObject() : \YooKassa\Request\Refunds\CreateRefundRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestInterface.md b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestInterface.md
index 4272b297..7a7bf774 100644
--- a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestInterface.md
@@ -339,6 +339,6 @@ public hasDeal() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestSerializer.md b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestSerializer.md
index 5be96589..900bcdcc 100644
--- a/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Refunds-CreateRefundRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Refunds\CreateRefundRequestInterface $request
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-CreateRefundResponse.md b/docs/classes/YooKassa-Request-Refunds-CreateRefundResponse.md
index ba0be6d2..0e50112c 100644
--- a/docs/classes/YooKassa-Request-Refunds-CreateRefundResponse.md
+++ b/docs/classes/YooKassa-Request-Refunds-CreateRefundResponse.md
@@ -955,6 +955,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundResponse.md b/docs/classes/YooKassa-Request-Refunds-RefundResponse.md
index ff55034f..7dd3fc94 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundResponse.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundResponse.md
@@ -955,6 +955,6 @@ protected getUnknownProperties() : array
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundsRequest.md b/docs/classes/YooKassa-Request-Refunds-RefundsRequest.md
index 7f3e9214..bcf1826b 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundsRequest.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundsRequest.md
@@ -1072,6 +1072,6 @@ protected setValidationError(string $value) : mixed
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundsRequestBuilder.md b/docs/classes/YooKassa-Request-Refunds-RefundsRequestBuilder.md
index 42a8beb5..fd2887c6 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundsRequestBuilder.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundsRequestBuilder.md
@@ -382,6 +382,6 @@ protected initCurrentObject() : \YooKassa\Request\Refunds\RefundsRequest
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundsRequestInterface.md b/docs/classes/YooKassa-Request-Refunds-RefundsRequestInterface.md
index f496ba3b..854b3432 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundsRequestInterface.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundsRequestInterface.md
@@ -305,6 +305,6 @@ public hasCursor() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundsRequestSerializer.md b/docs/classes/YooKassa-Request-Refunds-RefundsRequestSerializer.md
index 0093f367..e0d5d016 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundsRequestSerializer.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundsRequestSerializer.md
@@ -65,6 +65,6 @@ public serialize(\YooKassa\Request\Refunds\RefundsRequestInterface $request) : a
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Refunds-RefundsResponse.md b/docs/classes/YooKassa-Request-Refunds-RefundsResponse.md
index 6382be78..9916c3ea 100644
--- a/docs/classes/YooKassa-Request-Refunds-RefundsResponse.md
+++ b/docs/classes/YooKassa-Request-Refunds-RefundsResponse.md
@@ -124,6 +124,6 @@ public hasNextCursor() : bool
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/classes/YooKassa-Request-Webhook-WebhookListResponse.md b/docs/classes/YooKassa-Request-Webhook-WebhookListResponse.md
index fba1e303..2e6dc0b0 100644
--- a/docs/classes/YooKassa-Request-Webhook-WebhookListResponse.md
+++ b/docs/classes/YooKassa-Request-Webhook-WebhookListResponse.md
@@ -101,6 +101,6 @@ public getType() : string
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/default.md b/docs/namespaces/default.md
index 917b7678..92b0ff2f 100644
--- a/docs/namespaces/default.md
+++ b/docs/namespaces/default.md
@@ -52,6 +52,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-client.md b/docs/namespaces/yookassa-client.md
index d2b59176..c3cf0470 100644
--- a/docs/namespaces/yookassa-client.md
+++ b/docs/namespaces/yookassa-client.md
@@ -33,6 +33,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-common-exceptions.md b/docs/namespaces/yookassa-common-exceptions.md
index 8881890c..22c51335 100644
--- a/docs/namespaces/yookassa-common-exceptions.md
+++ b/docs/namespaces/yookassa-common-exceptions.md
@@ -41,6 +41,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-common.md b/docs/namespaces/yookassa-common.md
index 75ec82f7..ee42d66d 100644
--- a/docs/namespaces/yookassa-common.md
+++ b/docs/namespaces/yookassa-common.md
@@ -38,6 +38,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-helpers-config.md b/docs/namespaces/yookassa-helpers-config.md
index 3a98775a..1da037a1 100644
--- a/docs/namespaces/yookassa-helpers-config.md
+++ b/docs/namespaces/yookassa-helpers-config.md
@@ -31,6 +31,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-helpers.md b/docs/namespaces/yookassa-helpers.md
index d0561b58..62216349 100644
--- a/docs/namespaces/yookassa-helpers.md
+++ b/docs/namespaces/yookassa-helpers.md
@@ -35,6 +35,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-confirmation.md b/docs/namespaces/yookassa-model-confirmation.md
index 9574b175..123b2e27 100644
--- a/docs/namespaces/yookassa-model-confirmation.md
+++ b/docs/namespaces/yookassa-model-confirmation.md
@@ -32,6 +32,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-confirmationattributes.md b/docs/namespaces/yookassa-model-confirmationattributes.md
index 31e95e68..5ff7c034 100644
--- a/docs/namespaces/yookassa-model-confirmationattributes.md
+++ b/docs/namespaces/yookassa-model-confirmationattributes.md
@@ -32,6 +32,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-deal.md b/docs/namespaces/yookassa-model-deal.md
index ccf9ce13..f4f21e54 100644
--- a/docs/namespaces/yookassa-model-deal.md
+++ b/docs/namespaces/yookassa-model-deal.md
@@ -36,6 +36,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-notification.md b/docs/namespaces/yookassa-model-notification.md
index 0817c6a0..2123f34f 100644
--- a/docs/namespaces/yookassa-model-notification.md
+++ b/docs/namespaces/yookassa-model-notification.md
@@ -39,6 +39,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentdata-b2b-sberbank.md b/docs/namespaces/yookassa-model-paymentdata-b2b-sberbank.md
index 2f7908dc..3875b89d 100644
--- a/docs/namespaces/yookassa-model-paymentdata-b2b-sberbank.md
+++ b/docs/namespaces/yookassa-model-paymentdata-b2b-sberbank.md
@@ -33,6 +33,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentdata-b2b.md b/docs/namespaces/yookassa-model-paymentdata-b2b.md
index 1dbad5ed..6b2555ed 100644
--- a/docs/namespaces/yookassa-model-paymentdata-b2b.md
+++ b/docs/namespaces/yookassa-model-paymentdata-b2b.md
@@ -23,6 +23,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentdata.md b/docs/namespaces/yookassa-model-paymentdata.md
index a11b82db..af874153 100644
--- a/docs/namespaces/yookassa-model-paymentdata.md
+++ b/docs/namespaces/yookassa-model-paymentdata.md
@@ -46,6 +46,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentmethod-b2b-sberbank.md b/docs/namespaces/yookassa-model-paymentmethod-b2b-sberbank.md
index d442a4f8..52e4a841 100644
--- a/docs/namespaces/yookassa-model-paymentmethod-b2b-sberbank.md
+++ b/docs/namespaces/yookassa-model-paymentmethod-b2b-sberbank.md
@@ -31,6 +31,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentmethod-b2b.md b/docs/namespaces/yookassa-model-paymentmethod-b2b.md
index 4669a493..c9caafda 100644
--- a/docs/namespaces/yookassa-model-paymentmethod-b2b.md
+++ b/docs/namespaces/yookassa-model-paymentmethod-b2b.md
@@ -23,6 +23,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-paymentmethod.md b/docs/namespaces/yookassa-model-paymentmethod.md
index 476a0d80..1da5093d 100644
--- a/docs/namespaces/yookassa-model-paymentmethod.md
+++ b/docs/namespaces/yookassa-model-paymentmethod.md
@@ -48,6 +48,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-payout.md b/docs/namespaces/yookassa-model-payout.md
index c7fb8604..8c8fc805 100644
--- a/docs/namespaces/yookassa-model-payout.md
+++ b/docs/namespaces/yookassa-model-payout.md
@@ -33,6 +33,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-receipt.md b/docs/namespaces/yookassa-model-receipt.md
index 8e64691d..0dac6ff1 100644
--- a/docs/namespaces/yookassa-model-receipt.md
+++ b/docs/namespaces/yookassa-model-receipt.md
@@ -8,10 +8,16 @@
| Name | Summary |
| ---- | ------- |
+| [\YooKassa\Model\Receipt\AdditionalUserProps](../classes/YooKassa-Model-Receipt-AdditionalUserProps.md) | Class AdditionalUserProps |
| [\YooKassa\Model\Receipt\AgentType](../classes/YooKassa-Model-Receipt-AgentType.md) | Базовый класс генерируемых enum'ов |
-| [\YooKassa\Model\Receipt\PaymentMode](../classes/YooKassa-Model-Receipt-PaymentMode.md) | Базовый класс генерируемых enum'ов |
-| [\YooKassa\Model\Receipt\PaymentSubject](../classes/YooKassa-Model-Receipt-PaymentSubject.md) | Базовый класс генерируемых enum'ов |
+| [\YooKassa\Model\Receipt\IndustryDetails](../classes/YooKassa-Model-Receipt-IndustryDetails.md) | Class IndustryDetails |
+| [\YooKassa\Model\Receipt\MarkCodeInfo](../classes/YooKassa-Model-Receipt-MarkCodeInfo.md) | Class MarkCodeInfo |
+| [\YooKassa\Model\Receipt\MarkQuantity](../classes/YooKassa-Model-Receipt-MarkQuantity.md) | Class MarkQuantity |
+| [\YooKassa\Model\Receipt\OperationalDetails](../classes/YooKassa-Model-Receipt-OperationalDetails.md) | Class OperationalDetails |
+| [\YooKassa\Model\Receipt\PaymentMode](../classes/YooKassa-Model-Receipt-PaymentMode.md) | Признак способа расчета передается в параметре `payment_mode`. |
+| [\YooKassa\Model\Receipt\PaymentSubject](../classes/YooKassa-Model-Receipt-PaymentSubject.md) | Признак предмета расчета передается в параметре `payment_subject`. |
| [\YooKassa\Model\Receipt\ReceiptItemAmount](../classes/YooKassa-Model-Receipt-ReceiptItemAmount.md) | Class ReceiptItemAmount |
+| [\YooKassa\Model\Receipt\ReceiptItemMeasure](../classes/YooKassa-Model-Receipt-ReceiptItemMeasure.md) | Мера количества предмета расчета передается в массиве `items`, в параметре `measure`. |
| [\YooKassa\Model\Receipt\SettlementType](../classes/YooKassa-Model-Receipt-SettlementType.md) | Базовый класс генерируемых enum'ов |
---
@@ -29,6 +35,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model-webhook.md b/docs/namespaces/yookassa-model-webhook.md
index 0d851824..82da8a7a 100644
--- a/docs/namespaces/yookassa-model-webhook.md
+++ b/docs/namespaces/yookassa-model-webhook.md
@@ -25,6 +25,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-model.md b/docs/namespaces/yookassa-model.md
index 95ba6f31..224f9a28 100644
--- a/docs/namespaces/yookassa-model.md
+++ b/docs/namespaces/yookassa-model.md
@@ -96,6 +96,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-deals.md b/docs/namespaces/yookassa-request-deals.md
index e68bd2d7..10e1b4d4 100644
--- a/docs/namespaces/yookassa-request-deals.md
+++ b/docs/namespaces/yookassa-request-deals.md
@@ -41,6 +41,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-payments-payment.md b/docs/namespaces/yookassa-request-payments-payment.md
index 31dae863..949b3655 100644
--- a/docs/namespaces/yookassa-request-payments-payment.md
+++ b/docs/namespaces/yookassa-request-payments-payment.md
@@ -35,6 +35,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-payments.md b/docs/namespaces/yookassa-request-payments.md
index f247bf81..018bc79d 100644
--- a/docs/namespaces/yookassa-request-payments.md
+++ b/docs/namespaces/yookassa-request-payments.md
@@ -45,6 +45,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-payouts-payoutdestinationdata.md b/docs/namespaces/yookassa-request-payouts-payoutdestinationdata.md
index c21fc907..c8236cef 100644
--- a/docs/namespaces/yookassa-request-payouts-payoutdestinationdata.md
+++ b/docs/namespaces/yookassa-request-payouts-payoutdestinationdata.md
@@ -29,6 +29,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-payouts.md b/docs/namespaces/yookassa-request-payouts.md
index 2c3d6317..0a772155 100644
--- a/docs/namespaces/yookassa-request-payouts.md
+++ b/docs/namespaces/yookassa-request-payouts.md
@@ -40,6 +40,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-receipts.md b/docs/namespaces/yookassa-request-receipts.md
index a203b93f..5bff05f0 100644
--- a/docs/namespaces/yookassa-request-receipts.md
+++ b/docs/namespaces/yookassa-request-receipts.md
@@ -46,6 +46,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-refunds.md b/docs/namespaces/yookassa-request-refunds.md
index 555077a9..637ffeda 100644
--- a/docs/namespaces/yookassa-request-refunds.md
+++ b/docs/namespaces/yookassa-request-refunds.md
@@ -41,6 +41,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request-webhook.md b/docs/namespaces/yookassa-request-webhook.md
index 09624fb8..3e4e5e21 100644
--- a/docs/namespaces/yookassa-request-webhook.md
+++ b/docs/namespaces/yookassa-request-webhook.md
@@ -25,6 +25,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa-request.md b/docs/namespaces/yookassa-request.md
index 1d679af3..27433b07 100644
--- a/docs/namespaces/yookassa-request.md
+++ b/docs/namespaces/yookassa-request.md
@@ -28,6 +28,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/namespaces/yookassa.md b/docs/namespaces/yookassa.md
index 7b446122..67b91c0f 100644
--- a/docs/namespaces/yookassa.md
+++ b/docs/namespaces/yookassa.md
@@ -33,6 +33,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/readme.md b/docs/readme.md
index ea217dae..da9672b9 100644
--- a/docs/readme.md
+++ b/docs/readme.md
@@ -52,6 +52,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/reports/deprecated.md b/docs/reports/deprecated.md
index 9abdaa3b..eb98dd63 100644
--- a/docs/reports/deprecated.md
+++ b/docs/reports/deprecated.md
@@ -36,10 +36,10 @@
#### [lib/Model/Receipt.php](../../lib/Model/Receipt.php)
| Line | Element | Description |
| ---- | ------- | ----------- |
-| 379 | \YooKassa\Model\Receipt::getPhone() | Устарел — данные рекомендуется брать в параметре receipt.customer.phone. |
-| 393 | \YooKassa\Model\Receipt::setPhone() | Устарел — данные рекомендуется передавать в параметре receipt.customer.phone. |
-| 408 | \YooKassa\Model\Receipt::getEmail() | Устарел — данные рекомендуется брать в параметре receipt.customer.email. |
-| 422 | \YooKassa\Model\Receipt::setEmail() | Устарел — данные рекомендуется передавать в параметре receipt.customer.email. |
+| 514 | \YooKassa\Model\Receipt::getPhone() | Устарел — данные рекомендуется брать в параметре receipt.customer.phone. |
+| 528 | \YooKassa\Model\Receipt::setPhone() | Устарел — данные рекомендуется передавать в параметре receipt.customer.phone. |
+| 543 | \YooKassa\Model\Receipt::getEmail() | Устарел — данные рекомендуется брать в параметре receipt.customer.email. |
+| 557 | \YooKassa\Model\Receipt::setEmail() | Устарел — данные рекомендуется передавать в параметре receipt.customer.email. |
#### [lib/Model/Refund.php](../../lib/Model/Refund.php)
| Line | Element | Description |
@@ -72,6 +72,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/reports/errors.md b/docs/reports/errors.md
index 5172b697..e15c60ae 100644
--- a/docs/reports/errors.md
+++ b/docs/reports/errors.md
@@ -18,6 +18,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/docs/reports/markers.md b/docs/reports/markers.md
index 0f68a093..53a3bfba 100644
--- a/docs/reports/markers.md
+++ b/docs/reports/markers.md
@@ -18,6 +18,6 @@
---
-This document was automatically generated from source code comments on 2022-04-22 using [phpDocumentor](http://www.phpdoc.org/)
+This document was automatically generated from source code comments on 2022-08-01 using [phpDocumentor](http://www.phpdoc.org/)
© 2022 YooMoney
\ No newline at end of file
diff --git a/lib/Client.php b/lib/Client.php
index 3ad52a39..c792aa5d 100644
--- a/lib/Client.php
+++ b/lib/Client.php
@@ -112,7 +112,7 @@ class Client extends BaseClient
/**
* Текущая версия библиотеки
*/
- const SDK_VERSION = '2.4.2';
+ const SDK_VERSION = '2.5.0';
/**
* Получить список платежей магазина
@@ -267,7 +267,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter $paymentId');
} elseif (!TypeCast::canCastToString($paymentId)) {
throw new \InvalidArgumentException('Invalid paymentId value: string required');
- } elseif (strlen($paymentId) !== 36) {
+ } elseif (mb_strlen($paymentId) !== 36) {
throw new \InvalidArgumentException('Invalid paymentId value');
}
@@ -322,7 +322,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter $paymentId');
} elseif (!TypeCast::canCastToString($paymentId)) {
throw new \InvalidArgumentException('Invalid paymentId value: string required');
- } elseif (strlen($paymentId) !== 36) {
+ } elseif (mb_strlen($paymentId) !== 36) {
throw new \InvalidArgumentException('Invalid paymentId value');
}
@@ -388,7 +388,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter $paymentId');
} elseif (!TypeCast::canCastToString($paymentId)) {
throw new \InvalidArgumentException('Invalid paymentId value: string required');
- } elseif (strlen($paymentId) !== 36) {
+ } elseif (mb_strlen($paymentId) !== 36) {
throw new \InvalidArgumentException('Invalid paymentId value');
}
@@ -552,7 +552,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter $refundId');
} elseif (!TypeCast::canCastToString($refundId)) {
throw new \InvalidArgumentException('Invalid refundId value: string required');
- } elseif (strlen($refundId) !== 36) {
+ } elseif (mb_strlen($refundId) !== 36) {
throw new \InvalidArgumentException('Invalid refundId value');
}
$path = self::REFUNDS_PATH.'/'.$refundId;
@@ -854,7 +854,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter $receiptId');
} elseif (!TypeCast::canCastToString($receiptId)) {
throw new \InvalidArgumentException('Invalid receiptId value: string required');
- } elseif (strlen($receiptId) !== 39) {
+ } elseif (mb_strlen($receiptId) !== 39) {
throw new \InvalidArgumentException('Invalid receiptId value');
}
@@ -968,7 +968,7 @@ class Client extends BaseClient
throw new \InvalidArgumentException('Missing the required parameter dealId');
} elseif (!TypeCast::canCastToString($dealId)) {
throw new \InvalidArgumentException('Invalid dealId value: string required');
- } elseif (strlen($dealId) < 36 || strlen($dealId) > 50) {
+ } elseif (mb_strlen($dealId) < 36 || mb_strlen($dealId) > 50) {
throw new \InvalidArgumentException('Invalid dealId value');
}
diff --git a/lib/Common/AbstractPaymentRequestBuilder.php b/lib/Common/AbstractPaymentRequestBuilder.php
index 7c7140da..d3d10bbe 100644
--- a/lib/Common/AbstractPaymentRequestBuilder.php
+++ b/lib/Common/AbstractPaymentRequestBuilder.php
@@ -340,5 +340,4 @@ abstract class AbstractPaymentRequestBuilder extends AbstractRequestBuilder
return $this;
}
-
}
diff --git a/lib/Helpers/ProductCode.php b/lib/Helpers/ProductCode.php
index 96a698e6..4115c2cd 100644
--- a/lib/Helpers/ProductCode.php
+++ b/lib/Helpers/ProductCode.php
@@ -292,7 +292,7 @@ class ProductCode
$chars = "0123456789abcdefghijklmnopqrstuvwxyz";
$toString = substr($chars, 0, $toBase);
- $length = strlen($numString);
+ $length = mb_strlen($numString);
$result = '';
$number = array();
@@ -327,7 +327,8 @@ class ProductCode
private function strToHex($string)
{
$hex = '';
- for ($i = 0; $i < strlen($string); $i++) {
+ $length = mb_strlen($string);
+ for ($i = 0; $i < $length; $i++) {
$ord = ord($string[$i]);
$hexCode = dechex($ord);
$hex .= substr('0' . $hexCode, -2);
diff --git a/lib/Model/PaymentMethod/PaymentMethodBankCard.php b/lib/Model/PaymentMethod/PaymentMethodBankCard.php
index 6894c603..96a3494e 100644
--- a/lib/Model/PaymentMethod/PaymentMethodBankCard.php
+++ b/lib/Model/PaymentMethod/PaymentMethodBankCard.php
@@ -292,7 +292,7 @@ class PaymentMethodBankCard extends AbstractPaymentMethod
throw new InvalidPropertyValueTypeException(
'Invalid issuerCountry value type', 0, 'PaymentMethodBankCard.issuerCountry', $value
);
- } elseif (strlen($value) !== self::ISO_3166_CODE_LENGTH) {
+ } elseif (mb_strlen($value) !== self::ISO_3166_CODE_LENGTH) {
throw new InvalidPropertyValueException(
'Invalid issuerCountry value', 0, 'PaymentMethodBankCard.issuerCountry', $value
);
diff --git a/lib/Model/Payout/PayoutDestinationBankCardCard.php b/lib/Model/Payout/PayoutDestinationBankCardCard.php
index aed2a45c..3c34ae6c 100644
--- a/lib/Model/Payout/PayoutDestinationBankCardCard.php
+++ b/lib/Model/Payout/PayoutDestinationBankCardCard.php
@@ -189,7 +189,7 @@ class PayoutDestinationBankCardCard extends AbstractObject
throw new InvalidPropertyValueTypeException(
'Invalid issuerCountry value type', 0, 'PaymentMethodBankCard.issuerCountry', $value
);
- } elseif (strlen($value) !== self::ISO_3166_CODE_LENGTH) {
+ } elseif (mb_strlen($value) !== self::ISO_3166_CODE_LENGTH) {
throw new InvalidPropertyValueException(
'Invalid issuerCountry value', 0, 'PaymentMethodBankCard.issuerCountry', $value
);
diff --git a/lib/Model/Receipt.php b/lib/Model/Receipt.php
index 7a3abba8..f09be79a 100644
--- a/lib/Model/Receipt.php
+++ b/lib/Model/Receipt.php
@@ -30,6 +30,9 @@ use YooKassa\Common\AbstractObject;
use YooKassa\Common\Exceptions\EmptyPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
/**
* Класс данных для формирования чека в онлайн-кассе (для соблюдения 54-ФЗ)
@@ -39,6 +42,12 @@ use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
* @property SettlementInterface[] $settlements Массив оплат, обеспечивающих выдачу товара
* @property int $taxSystemCode Код системы налогообложения. Число 1-6.
* @property int $tax_system_code Код системы налогообложения. Число 1-6.
+ * @property AdditionalUserProps $additionalUserProps Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084)
+ * @property AdditionalUserProps $additional_user_props Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084)
+ * @property IndustryDetails[] $receiptIndustryDetails Отраслевой реквизит чека (тег в 54 ФЗ — 1261)
+ * @property IndustryDetails[] $receipt_industry_details Отраслевой реквизит чека (тег в 54 ФЗ — 1261)
+ * @property OperationalDetails $receiptOperationalDetails Операционный реквизит чека (тег в 54 ФЗ — 1270)
+ * @property OperationalDetails $receipt_operational_details Операционный реквизит чека (тег в 54 ФЗ — 1270)
*/
class Receipt extends AbstractObject implements ReceiptInterface
{
@@ -67,6 +76,19 @@ class Receipt extends AbstractObject implements ReceiptInterface
*/
private $_taxSystemCode;
+ /** @var AdditionalUserProps Дополнительный реквизит пользователя (тег в 54 ФЗ — 1084) */
+ private $_additionalUserProps;
+
+ /**
+ * @var IndustryDetails[] Отраслевой реквизит чека (тег в 54 ФЗ — 1261)
+ */
+ private $_receiptIndustryDetails;
+
+ /**
+ * @var OperationalDetails Операционный реквизит чека (тег в 54 ФЗ — 1270)
+ */
+ private $_receiptOperationalDetails;
+
/**
* Возвращает информацию о плательщике
*
@@ -125,7 +147,7 @@ class Receipt extends AbstractObject implements ReceiptInterface
$this->_items = array();
$this->_shippingItems = array();
foreach ($value as $key => $val) {
- if (is_object($val) && $val instanceof ReceiptItemInterface) {
+ if ($val instanceof ReceiptItemInterface) {
$this->addItem($val);
} else {
throw new InvalidPropertyValueTypeException(
@@ -220,20 +242,133 @@ class Receipt extends AbstractObject implements ReceiptInterface
if ($value === null || $value === '') {
$this->_taxSystemCode = null;
} elseif (!is_numeric($value)) {
- throw new InvalidPropertyValueTypeException(
- 'Invalid taxSystemCode value type', 0, 'receipt.taxSystemCode'
- );
+ throw new InvalidPropertyValueTypeException('Invalid taxSystemCode value type', 0, 'receipt.taxSystemCode');
} else {
$castedValue = (int)$value;
if ($castedValue < 1 || $castedValue > 6) {
- throw new InvalidPropertyValueException(
- 'Invalid taxSystemCode value: '.$value, 0, 'receipt.taxSystemCode'
- );
+ throw new InvalidPropertyValueException('Invalid taxSystemCode value: ' . $value, 0, 'receipt.taxSystemCode');
}
$this->_taxSystemCode = $castedValue;
}
}
+ /**
+ * Возвращает дополнительный реквизит пользователя
+ *
+ * @return AdditionalUserProps Дополнительный реквизит пользователя
+ */
+ public function getAdditionalUserProps()
+ {
+ return $this->_additionalUserProps;
+ }
+
+ /**
+ * Устанавливает дополнительный реквизит пользователя
+ *
+ * @param AdditionalUserProps|array $value Дополнительный реквизит пользователя
+ */
+ public function setAdditionalUserProps($value)
+ {
+ if (empty($value)) {
+ $this->_additionalUserProps = null;
+ return;
+ }
+ if (is_array($value)) {
+ $this->_additionalUserProps = new AdditionalUserProps($value);
+ } elseif ($value instanceof AdditionalUserProps) {
+ $this->_additionalUserProps = $value;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid additionalUserProps value type in receipt', 0, 'Receipt.additional_user_props', $value
+ );
+ }
+ }
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getReceiptIndustryDetails()
+ {
+ return $this->_receiptIndustryDetails;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptIndustryDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptIndustryDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof \Traversable)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details',
+ $value
+ );
+ }
+ $details = array();
+ foreach ($value as $key => $item) {
+ if (is_array($item)) {
+ $item = new IndustryDetails($item);
+ }
+ if ($item instanceof IndustryDetails) {
+ $details[] = $item;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details[' . $key . ']',
+ $item
+ );
+ }
+ }
+ $this->_receiptIndustryDetails = $details;
+ }
+
+ /**
+ * Возвращает операционный реквизит чека
+ * @return OperationalDetails Операционный реквизит чека
+ */
+ public function getReceiptOperationalDetails()
+ {
+ return $this->_receiptOperationalDetails;
+ }
+
+ /**
+ * Устанавливает операционный реквизит чека
+ * @param array|OperationalDetails $value Операционный реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptOperationalDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptOperationalDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof OperationalDetails)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptOperationalDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_operational_details',
+ $value
+ );
+ }
+
+ if (is_array($value)) {
+ $value = new OperationalDetails($value);
+ }
+
+ $this->_receiptOperationalDetails = $value;
+ }
+
/**
* Проверяет есть ли в чеке хотя бы одна позиция
*
diff --git a/lib/Model/Receipt/AdditionalUserProps.php b/lib/Model/Receipt/AdditionalUserProps.php
new file mode 100644
index 00000000..5ec5482a
--- /dev/null
+++ b/lib/Model/Receipt/AdditionalUserProps.php
@@ -0,0 +1,121 @@
+_name;
+ }
+
+ /**
+ * Устанавливает наименование дополнительного реквизита пользователя
+ * @param string $value Наименование дополнительного реквизита пользователя
+ */
+ public function setName($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty name value', 0, 'AdditionalUserProps.name');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid name value type', 0, 'AdditionalUserProps.name', $value);
+ }
+ if (mb_strlen((string)$value) > self::NAME_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid name value length: "' . $value . '"', 0, 'AdditionalUserProps.name', $value);
+ }
+
+ $this->_name = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает значение дополнительного реквизита пользователя
+ * @return string Значение дополнительного реквизита пользователя
+ */
+ public function getValue()
+ {
+ return $this->_value;
+ }
+
+ /**
+ * Устанавливает значение дополнительного реквизита пользователя
+ * @param string $value Значение дополнительного реквизита пользователя
+ */
+ public function setValue($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty value', 0, 'AdditionalUserProps.value');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid value type', 0, 'AdditionalUserProps.value', $value);
+ }
+ if (mb_strlen((string)$value) > self::VALUE_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid value length: "' . $value . '"', 0, 'AdditionalUserProps.value', $value);
+ }
+
+ $this->_value = (string)$value;
+
+ return $this;
+ }
+}
diff --git a/lib/Model/Receipt/IndustryDetails.php b/lib/Model/Receipt/IndustryDetails.php
new file mode 100644
index 00000000..efa42393
--- /dev/null
+++ b/lib/Model/Receipt/IndustryDetails.php
@@ -0,0 +1,210 @@
+_federalId;
+ }
+
+ /**
+ * Устанавливает идентификатор федерального органа исполнительной власти
+ * @param string $value Идентификатор федерального органа исполнительной власти
+ */
+ public function setFederalId($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty federal_id value', 0, 'IndustryDetails.federalId');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid federal_id value type', 0, 'IndustryDetails.federalId', $value);
+ }
+
+ $this->_federalId = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает дату документа основания
+ * @return Datetime Дата документа основания
+ */
+ public function getDocumentDate()
+ {
+ return $this->_documentDate;
+ }
+
+ /**
+ * Устанавливает дату документа основания
+ * @param string|Datetime $value Дата документа основания
+ * @throws \Exception
+ */
+ public function setDocumentDate($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty document_date value', 0, 'IndustryDetails.documentDate');
+ }
+ if (!TypeCast::canCastToDateTime($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid document_date value', 0, 'IndustryDetails.documentDate', $value);
+ }
+ $dateTime = TypeCast::castToDateTime($value);
+ if ($dateTime === null) {
+ throw new InvalidPropertyValueException('Invalid document_date value', 0, 'IndustryDetails.documentDate', $value);
+ }
+ $this->_documentDate = $dateTime;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает номер нормативного акта федерального органа исполнительной власти
+ * @return string Номер нормативного акта федерального органа исполнительной власти
+ */
+ public function getDocumentNumber()
+ {
+ return $this->_documentNumber;
+ }
+
+ /**
+ * Устанавливает номер нормативного акта федерального органа исполнительной власти
+ * @param string $value Номер нормативного акта федерального органа исполнительной власти
+ */
+ public function setDocumentNumber($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty document_number value', 0, 'IndustryDetails.documentNumber');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid document_number value type', 0, 'IndustryDetails.documentNumber', $value);
+ }
+ if (mb_strlen((string)$value) > self::DOCUMENT_NUMBER_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid document_number value length: "' . $value . '"', 0, 'IndustryDetails.documentNumber', $value);
+ }
+
+ $this->_documentNumber = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает значение отраслевого реквизита
+ * @return string Значение отраслевого реквизита
+ */
+ public function getValue()
+ {
+ return $this->_value;
+ }
+
+ /**
+ * Устанавливает значение отраслевого реквизита
+ * @param string $value Значение отраслевого реквизита
+ */
+ public function setValue($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty value', 0, 'IndustryDetails.value');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid value type', 0, 'IndustryDetails.value', $value);
+ }
+ if (mb_strlen((string)$value) > self::VALUE_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid value length: "' . $value . '"', 0, 'IndustryDetails.value', $value);
+ }
+
+ $this->_value = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ *
+ * @return array
+ */
+ public function jsonSerialize()
+ {
+ $result = parent::jsonSerialize();
+ $result['document_date'] = $this->getDocumentDate()->format(self::DOCUMENT_DATE_FORMAT);
+
+ return $result;
+ }
+}
diff --git a/lib/Model/Receipt/MarkCodeInfo.php b/lib/Model/Receipt/MarkCodeInfo.php
new file mode 100644
index 00000000..140d4574
--- /dev/null
+++ b/lib/Model/Receipt/MarkCodeInfo.php
@@ -0,0 +1,451 @@
+_mark_code_raw;
+ }
+
+ /**
+ * Устанавливает исходный код товара
+ * @param string $value Исходный код товара
+ * @return MarkCodeInfo
+ */
+ public function setMarkCodeRaw($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty mark_code_raw value', 0, 'MarkCodeInfo.mark_code_raw');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid mark_code_raw value type', 0, 'MarkCodeInfo.mark_code_raw', $value);
+ }
+
+ $this->_mark_code_raw = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getUnknown()
+ {
+ return $this->_unknown;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setUnknown($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty unknown value', 0, 'MarkCodeInfo.unknown');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid unknown value type', 0, 'MarkCodeInfo.unknown', $value);
+ }
+ if (mb_strlen((string)$value) > self::MAX_UNKNOWN_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid unknown value length: "' . $value . '"', 0, 'MarkCodeInfo.unknown', $value);
+ }
+
+ $this->_unknown = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEan8()
+ {
+ return $this->_ean_8;
+ }
+
+ /**
+ * @param string $value
+ * @return MarkCodeInfo
+ */
+ public function setEan8($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty ean_8 value', 0, 'MarkCodeInfo.ean_8');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid ean_8 value type', 0, 'MarkCodeInfo.ean_8', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_EAN_8_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid ean_8 value length: "' . $value . '"', 0, 'MarkCodeInfo.ean_8', $value);
+ }
+
+ $this->_ean_8 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEan13()
+ {
+ return $this->_ean_13;
+ }
+
+ /**
+ * @param string $value
+ * @return MarkCodeInfo
+ */
+ public function setEan13($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty ean_8 value', 0, 'MarkCodeInfo.ean_8');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid ean_8 value type', 0, 'MarkCodeInfo.ean_8', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_EAN_13_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid ean_8 value length: "' . $value . '"', 0, 'MarkCodeInfo.ean_8', $value);
+ }
+
+ $this->_ean_13 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getItf14()
+ {
+ return $this->_itf_14;
+ }
+
+ /**
+ * @param string $value
+ * @return MarkCodeInfo
+ */
+ public function setItf14($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty itf_14 value', 0, 'MarkCodeInfo.itf_14');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid itf_14 value type', 0, 'MarkCodeInfo.itf_14', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_ITF_14_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid itf_14 value length: "' . $value . '"', 0, 'MarkCodeInfo.itf_14', $value);
+ }
+
+ $this->_itf_14 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getGs10()
+ {
+ return $this->_gs_10;
+ }
+
+ /**
+ * @param string $value
+ * @return MarkCodeInfo
+ */
+ public function setGs10($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty gs_10 value', 0, 'MarkCodeInfo.gs_10');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid gs_10 value type', 0, 'MarkCodeInfo.gs_10', $value);
+ }
+ if (mb_strlen((string)$value) > self::MAX_GS_10_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid gs_10 value length: "' . $value . '"', 0, 'MarkCodeInfo.gs_10', $value);
+ }
+
+ $this->_gs_10 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getGs1m()
+ {
+ return $this->_gs_1m;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setGs1m($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty gs_1m value', 0, 'MarkCodeInfo.gs_1m');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid gs_1m value type', 0, 'MarkCodeInfo.gs_1m', $value);
+ }
+ if (mb_strlen((string)$value) > self::MAX_GS_1M_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid gs_1m value length: "' . $value . '"', 0, 'MarkCodeInfo.gs_1m', $value);
+ }
+
+ $this->_gs_1m = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getShort()
+ {
+ return $this->_short;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setShort($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty short value', 0, 'MarkCodeInfo.short');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid short value type', 0, 'MarkCodeInfo.short', $value);
+ }
+ if (mb_strlen((string)$value) > self::MAX_SHORT_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid short value length: "' . $value . '"', 0, 'MarkCodeInfo.short', $value);
+ }
+
+ $this->_short = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getFur()
+ {
+ return $this->_fur;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setFur($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty fur value', 0, 'MarkCodeInfo.fur');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid fur value type', 0, 'MarkCodeInfo.fur', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_FUR_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid fur value length: "' . $value . '"', 0, 'MarkCodeInfo.fur', $value);
+ }
+
+ $this->_fur = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEgais20()
+ {
+ return $this->_egais_20;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setEgais20($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty egais_20 value', 0, 'MarkCodeInfo.egais_20');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid egais_20 value type', 0, 'MarkCodeInfo.egais_20', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_EGAIS_20_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid egais_20 value length: "' . $value . '"', 0, 'MarkCodeInfo.egais_20', $value);
+ }
+
+ $this->_egais_20 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEgais30()
+ {
+ return $this->_egais_30;
+ }
+
+ /**
+ * @param $value
+ * @return MarkCodeInfo
+ */
+ public function setEgais30($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty egais_30 value', 0, 'MarkCodeInfo.egais_30');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid egais_30 value type', 0, 'MarkCodeInfo.egais_30', $value);
+ }
+ if (mb_strlen((string)$value) !== self::MAX_EGAIS_30_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid egais_30 value length: "' . $value . '"', 0, 'MarkCodeInfo.egais_30', $value);
+ }
+
+ $this->_egais_30 = $value;
+
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ *
+ * @return array
+ */
+ public function jsonSerialize()
+ {
+ $fields = array(
+ 'mark_code_raw', 'unknown', 'ean_8', 'ean_13', 'itf_14', 'gs_10', 'gs_1m', 'short', 'fur', 'egais_20', 'egais_30'
+ );
+ $result = array();
+ foreach ($fields as $key) {
+ $value = $this->{$key};
+ if (!empty($value)) {
+ $result[$key] = $value;
+ }
+ }
+ return $result;
+ }
+}
diff --git a/lib/Model/Receipt/MarkQuantity.php b/lib/Model/Receipt/MarkQuantity.php
new file mode 100644
index 00000000..cbb949cf
--- /dev/null
+++ b/lib/Model/Receipt/MarkQuantity.php
@@ -0,0 +1,118 @@
+_numerator;
+ }
+
+ /**
+ * Устанавливает числитель
+ * @param integer $value Числитель
+ */
+ public function setNumerator($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty numerator value', 0, 'MarkQuantity.numerator');
+ }
+ if (!is_numeric($value)) { // todo: ??
+ throw new InvalidPropertyValueTypeException('Invalid numerator value type', 0, 'MarkQuantity.numerator', $value);
+ }
+ if ((int)$value < self::MIN_VALUE) {
+ throw new InvalidPropertyValueException('Invalid numerator value: "' . $value . '"', 0, 'MarkQuantity.numerator', $value);
+ }
+
+ $this->_numerator = (int)$value;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает знаменатель
+ * @return integer Знаменатель
+ */
+ public function getDenominator()
+ {
+ return $this->_denominator;
+ }
+
+ /**
+ * Устанавливает знаменатель
+ * @param integer $value Знаменатель
+ */
+ public function setDenominator($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty denominator value', 0, 'MarkQuantity.denominator');
+ }
+ if (!is_numeric($value)) { // todo: ??
+ throw new InvalidPropertyValueTypeException('Invalid denominator value type', 0, 'MarkQuantity.denominator', $value);
+ }
+ if ((int)$value < self::MIN_VALUE) {
+ throw new InvalidPropertyValueException('Invalid denominator value: "' . $value . '"', 0, 'MarkQuantity.denominator', $value);
+ }
+
+ $this->_denominator = (int)$value;
+
+ return $this;
+ }
+}
diff --git a/lib/Model/Receipt/OperationalDetails.php b/lib/Model/Receipt/OperationalDetails.php
new file mode 100644
index 00000000..d17bccfc
--- /dev/null
+++ b/lib/Model/Receipt/OperationalDetails.php
@@ -0,0 +1,180 @@
+_operationId;
+ }
+
+ /**
+ * Устанавливает идентификатор операции
+ * @param string $value Идентификатор операции
+ */
+ public function setOperationId($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty operation_id value', 0, 'OperationalDetails.operationId');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid operation_id value type', 0, 'OperationalDetails.operationId', $value);
+ }
+ if (mb_strlen((string)$value) > self::OPERATION_ID_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid operation_id value length: "' . $value . '"', 0, 'OperationalDetails.operationId', $value);
+ }
+
+ $this->_operationId = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает время создания операции
+ * @return Datetime Время создания операции
+ */
+ public function getCreatedAt()
+ {
+ return $this->_createdAt;
+ }
+
+ /**
+ * Устанавливает время создания операции
+ * @param string|Datetime $value Время создания операции
+ * @throws \Exception
+ */
+ public function setCreatedAt($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty created_at value', 0, 'OperationalDetails.createdAt');
+ }
+ if (!TypeCast::canCastToDateTime($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid created_at value', 0, 'OperationalDetails.createdAt', $value);
+ }
+ $dateTime = TypeCast::castToDateTime($value);
+ if ($dateTime === null) {
+ throw new InvalidPropertyValueException('Invalid created_at value', 0, 'OperationalDetails.createdAt', $value);
+ }
+ $this->_createdAt = $dateTime;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает данные операции
+ * @return string Данные операции
+ */
+ public function getValue()
+ {
+ return $this->_value;
+ }
+
+ /**
+ * Устанавливает данные операции
+ * @param string $value Данные операции
+ */
+ public function setValue($value)
+ {
+ if ($value === null || $value === '') {
+ throw new EmptyPropertyValueException('Empty value', 0, 'OperationalDetails.value');
+ }
+ if (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException('Invalid value type', 0, 'OperationalDetails.value', $value);
+ }
+ if (mb_strlen((string)$value) > self::VALUE_MAX_LENGTH) {
+ throw new InvalidPropertyValueException('Invalid value length: "' . $value . '"', 0, 'OperationalDetails.value', $value);
+ }
+
+ $this->_value = (string)$value;
+
+ return $this;
+ }
+
+ /**
+ * @inheritdoc
+ *
+ * @return array
+ */
+ public function jsonSerialize()
+ {
+ $result = parent::jsonSerialize();
+ $result['created_at'] = $this->getCreatedAt()
+ ->setTimezone(new DateTimeZone('UTC'))
+ ->format(self::DATE_FORMAT);
+
+ return $result;
+ }
+}
diff --git a/lib/Model/Receipt/PaymentMode.php b/lib/Model/Receipt/PaymentMode.php
index 80a01158..9f42c3a2 100644
--- a/lib/Model/Receipt/PaymentMode.php
+++ b/lib/Model/Receipt/PaymentMode.php
@@ -1,4 +1,5 @@
true,
self::EXCISE => true,
@@ -68,5 +120,21 @@ class PaymentSubject extends AbstractEnum
self::RESORT_FEE => true,
self::COMPOSITE => true,
self::ANOTHER => true,
+
+ self::FINE => true,
+ self::TAX => true,
+ self::LIEN => true,
+ self::COST => true,
+ self::PENSION_INSURANCE_WITHOUT_PAYOUTS => true,
+ self::PENSION_INSURANCE_WITH_PAYOUTS => true,
+ self::HEALTH_INSURANCE_WITHOUT_PAYOUTS => true,
+ self::HEALTH_INSURANCE_WITH_PAYOUTS => true,
+ self::HEALTH_INSURANCE => true,
+ self::CASINO => true,
+ self::AGENT_WITHDRAWALS => true,
+ self::NON_MARKED_EXCISE => true,
+ self::MARKED_EXCISE => true,
+ self::MARKED => true,
+ self::NON_MARKED => true,
);
}
diff --git a/lib/Model/Receipt/ReceiptItemMeasure.php b/lib/Model/Receipt/ReceiptItemMeasure.php
new file mode 100644
index 00000000..1e139087
--- /dev/null
+++ b/lib/Model/Receipt/ReceiptItemMeasure.php
@@ -0,0 +1,112 @@
+ true,
+ self::GRAM => true,
+ self::KILOGRAM => true,
+ self::TON => true,
+ self::CENTIMETER => true,
+ self::DECIMETER => true,
+ self::METER => true,
+ self::SQUARE_CENTIMETER => true,
+ self::SQUARE_DECIMETER => true,
+ self::SQUARE_METER => true,
+ self::MILLILITER => true,
+ self::LITER => true,
+ self::CUBIC_METER => true,
+ self::KILOWATT_HOUR => true,
+ self::GIGACALORIE => true,
+ self::DAY => true,
+ self::HOUR => true,
+ self::MINUTE => true,
+ self::SECOND => true,
+ self::KILOBYTE => true,
+ self::MEGABYTE => true,
+ self::GIGABYTE => true,
+ self::TERABYTE => true,
+ self::ANOTHER => true,
+ );
+}
diff --git a/lib/Model/ReceiptCustomer.php b/lib/Model/ReceiptCustomer.php
index 444a6235..b9c18b5c 100644
--- a/lib/Model/ReceiptCustomer.php
+++ b/lib/Model/ReceiptCustomer.php
@@ -84,7 +84,7 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface
$this->_fullName = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException('Invalid full_name value type', 0, 'receipt.customer.full_name');
- } elseif (strlen((string)$value) > 256) {
+ } elseif (mb_strlen((string)$value) > 256) {
throw new InvalidPropertyValueException(
'Invalid full_name value: "'.$value.'"', 0, 'receipt.customer.full_name', $value
);
diff --git a/lib/Model/ReceiptItem.php b/lib/Model/ReceiptItem.php
index a250a012..7063b8d0 100644
--- a/lib/Model/ReceiptItem.php
+++ b/lib/Model/ReceiptItem.php
@@ -33,85 +33,140 @@ use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
use YooKassa\Helpers\ProductCode;
use YooKassa\Helpers\TypeCast;
use YooKassa\Model\Receipt\AgentType;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
+use YooKassa\Model\Receipt\MarkQuantity;
use YooKassa\Model\Receipt\ReceiptItemAmount;
+use YooKassa\Model\Receipt\ReceiptItemMeasure;
/**
* Информация о товарной позиции в заказе, позиция фискального чека
*
- * @property string $description Наименование товара
- * @property float $quantity Количество
+ * @property string $description Наименование товара (тег в 54 ФЗ — 1030)
+ * @property float $quantity Количество (тег в 54 ФЗ — 1023)
* @property-read float $amount Суммарная стоимость покупаемого товара в копейках/центах
- * @property AmountInterface $price Цена товара
- * @property Supplier $supplier Информация о поставщике товара или услуги
- * @property int $vatCode Ставка НДС, число 1-6
- * @property int $vat_code Ставка НДС, число 1-6
- * @property string $paymentSubject Признак предмета расчета
- * @property string $payment_subject Признак предмета расчета
- * @property string $paymentMode Признак способа расчета
- * @property string $payment_mode Признак способа расчета
- * @property string $productCode Код товара
- * @property string $product_code Код товара
- * @property string $countryOfOriginCode Код страны происхождения товара
- * @property string $country_of_origin_code Код страны происхождения товара
- * @property string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов)
- * @property string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов)
- * @property float $excise Сумма акциза товара с учетом копеек
+ * @property AmountInterface $price Цена товара (тег в 54 ФЗ — 1079)
+ * @property Supplier $supplier Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
+ * @property string $agentType Тип посредника, реализующего товар или услугу
+ * @property string $agent_type Тип посредника, реализующего товар или услугу
+ * @property int $vatCode Ставка НДС (тег в 54 ФЗ — 1199), число 1-6
+ * @property int $vat_code Ставка НДС (тег в 54 ФЗ — 1199), число 1-6
+ * @property string $paymentSubject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property string $payment_subject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property string $paymentMode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property string $payment_mode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property string $productCode Код товара (тег в 54 ФЗ — 1162)
+ * @property string $product_code Код товара (тег в 54 ФЗ — 1162)
+ * @property MarkCodeInfo $markCodeInfo Код товара (тег в 54 ФЗ — 1163)
+ * @property MarkCodeInfo $mark_code_info Код товара (тег в 54 ФЗ — 1163)
+ * @property string $measure Мера количества предмета расчета (тег в 54 ФЗ — 2108)
+ * @property string $markMode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property string $mark_mode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property MarkQuantity $markQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property MarkQuantity $mark_quantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property IndustryDetails[] $paymentSubjectIndustryDetails Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+ * @property IndustryDetails[] $payment_subject_industry_details Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+ * @property string $countryOfOriginCode Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property string $country_of_origin_code Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property string $additionalPaymentSubjectProps Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+ * @property string $additional_payment_subject_props Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+ * @property float $excise Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
* @property-write bool $isShipping Флаг доставки
*/
class ReceiptItem extends AbstractObject implements ReceiptItemInterface
{
+ /** @var int Максимальная длинна наименования товара */
+ const DESCRIPTION_MAX_LENGTH = 128;
+ /** @var int Максимальная длинна дополнительного реквизита предмета расчета */
+ const ADD_PROPS_MAX_LENGTH = 64;
+
/**
- * @var string Наименование товара
+ * @var string Наименование товара (тег в 54 ФЗ — 1030)
*/
private $_description;
/**
- * @var float Количество
+ * @var float Количество (тег в 54 ФЗ — 1023)
*/
private $_quantity;
/**
- * @var ReceiptItemAmount Цена товара
+ * @var string Мера количества предмета расчета (тег в 54 ФЗ — 2108) — единица измерения товара, например штуки, граммы.
+ * Обязателен при использовании ФФД 1.2.
+ */
+ private $_measure;
+
+ /**
+ * @var MarkQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291).
+ */
+ private $_markQuantity;
+
+ /**
+ * @var ReceiptItemAmount Цена товара (тег в 54 ФЗ — 1079)
*/
private $_amount;
/**
- * @var int Ставка НДС, число 1-6
+ * @var int Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
*/
private $_vatCode;
/**
- * @var string Признак предмета расчета.
+ * @var string Признак предмета расчета (тег в 54 ФЗ — 1212)
*/
private $_paymentSubject;
/**
- * @var string Признак способа расчета.
+ * @var string Признак способа расчета (тег в 54 ФЗ — 1214)
*/
private $_paymentMode;
/**
- * @var string Код товара.
- */
- private $_productCode;
-
- /**
- * @var string Код страны происхождения товара
+ * @var string Код страны происхождения товара (тег в 54 ФЗ — 1230)
*/
private $_countryOfOriginCode;
/**
- * @var string Номер таможенной декларации (от 1 до 32 символов).
+ * @var string Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
*/
private $_customsDeclarationNumber;
/**
- * @var float Сумма акциза товара с учетом копеек. Десятичное число с точностью до 2 символов после точки.
+ * @var float Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229). Десятичное число с точностью до 2 символов после точки.
*/
private $_excise;
/**
- * @var Supplier Информация о поставщике товара или услуги
+ * @var string Код товара (тег в 54 ФЗ — 1162)
+ */
+ private $_productCode;
+
+ /**
+ * @var MarkCodeInfo Код товара (тег в 54 ФЗ — 1163).
+ * Обязателен при использовании протокола ФФД 1.2, если товар нужно маркировать. Должно быть заполнено хотя бы одно из полей.
+ */
+ private $_markCodeInfo;
+
+ /**
+ * @var string Режим обработки кода маркировки (тег в 54 ФЗ — 2102). Должен принимать значение равное «0».
+ */
+ private $_markMode;
+
+ /**
+ * @var IndustryDetails[] Отраслевой реквизит чека (тег в 54 ФЗ — 1260).
+ */
+ private $_paymentSubjectIndustryDetails;
+
+ /**
+ * @var string Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191). Не более 64 символов.
+ * Можно передавать, если вы отправляете данные для формирования чека по сценарию Сначала платеж, потом чек
+ */
+ private $_additionalPaymentSubjectProps;
+
+ /**
+ * @var Supplier Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
*/
private $_supplier;
@@ -146,19 +201,26 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
{
if ($value === null || $value === '') {
throw new EmptyPropertyValueException(
- 'Empty description value in ReceiptItem', 0, 'ReceiptItem.description'
+ 'Empty description value in ReceiptItem',
+ 0,
+ 'ReceiptItem.description'
);
} elseif (TypeCast::canCastToString($value)) {
$castedValue = (string)$value;
if ($castedValue === '') {
throw new EmptyPropertyValueException(
- 'Empty description value in ReceiptItem', 0, 'ReceiptItem.description'
+ 'Empty description value in ReceiptItem',
+ 0,
+ 'ReceiptItem.description'
);
}
- $this->_description = mb_substr($castedValue, 0, 128);
+ $this->_description = mb_substr($castedValue, 0, self::DESCRIPTION_MAX_LENGTH);
} else {
throw new InvalidPropertyValueTypeException(
- 'Empty description value in ReceiptItem', 0, 'ReceiptItem.description', $value
+ 'Empty description value in ReceiptItem',
+ 0,
+ 'ReceiptItem.description',
+ $value
);
}
}
@@ -188,11 +250,17 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
throw new EmptyPropertyValueException('Empty quantity value in ReceiptItem', 0, 'ReceiptItem.quantity');
} elseif (!is_numeric($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid quantity value type in ReceiptItem', 0, 'ReceiptItem.quantity', $value
+ 'Invalid quantity value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.quantity',
+ $value
);
} elseif ($value <= 0.0) {
throw new InvalidPropertyValueException(
- 'Invalid quantity value in ReceiptItem', 0, 'ReceiptItem.quantity', $value
+ 'Invalid quantity value in ReceiptItem',
+ 0,
+ 'ReceiptItem.quantity',
+ $value
);
} else {
$this->_quantity = (float)$value;
@@ -230,7 +298,10 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_amount = $value;
} else {
throw new InvalidPropertyValueTypeException(
- 'Invalid amount value type in ReceiptItem', 0, 'ReceiptItem.amount', $value
+ 'Invalid amount value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.amount',
+ $value
);
}
}
@@ -259,11 +330,17 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_vatCode = null;
} elseif (!is_numeric($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid vatId value type in ReceiptItem', 0, 'ReceiptItem.vatId', $value
+ 'Invalid vatId value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.vatId',
+ $value
);
} elseif ($value < 1 || $value > 6) {
throw new InvalidPropertyValueException(
- 'Invalid vatId value in ReceiptItem', 0, 'ReceiptItem.vatId', $value
+ 'Invalid vatId value in ReceiptItem',
+ 0,
+ 'ReceiptItem.vatId',
+ $value
);
} else {
$this->_vatCode = (int)$value;
@@ -291,7 +368,11 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
if ($value === null || $value === '') {
$this->_paymentSubject = null;
} elseif (!TypeCast::canCastToString($value)) {
- throw new InvalidPropertyValueTypeException('Invalid paymentSubject value type', 0, 'ReceiptItem.paymentSubject');
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid paymentSubject value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.paymentSubject'
+ );
} else {
$this->_paymentSubject = $value;
}
@@ -319,7 +400,10 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_paymentMode = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid paymentMode value type', 0, 'ReceiptItem.paymentMode', $value
+ 'Invalid paymentMode value type',
+ 0,
+ 'ReceiptItem.paymentMode',
+ $value
);
} else {
$this->_paymentMode = $value;
@@ -351,21 +435,240 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_productCode = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid productCode value type', 0, 'ReceiptItem.productCode', $value
+ 'Invalid productCode value type',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
);
- } elseif (strlen((string)$value) > 96) {
+ } elseif (mb_strlen((string)$value) > 96) {
throw new InvalidPropertyValueException(
- 'Invalid productCode value: "'.$value.'"', 0, 'ReceiptItem.productCode', $value
+ 'Invalid productCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
);
} elseif (!preg_match('/^[0-9A-F ]{2,96}$/', (string)$value)) {
throw new InvalidPropertyValueException(
- 'Invalid productCode value: "'.$value.'"', 0, 'ReceiptItem.productCode', $value
+ 'Invalid productCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
);
} else {
$this->_productCode = $value;
}
}
+ /**
+ * Возвращает код товара
+ * @return MarkCodeInfo Код товара
+ */
+ public function getMarkCodeInfo()
+ {
+ return $this->_markCodeInfo;
+ }
+
+ /**
+ * Устанавливает код товара
+ * @param array|MarkCodeInfo $value Код товара
+ */
+ public function setMarkCodeInfo($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markCodeInfo = null;
+ } else {
+ if (is_array($value)) {
+ $value = new MarkCodeInfo($value);
+ }
+ if (!($value instanceof MarkCodeInfo)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markCodeInfo value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_code_info',
+ $value
+ );
+ }
+
+ $this->_markCodeInfo = $value;
+ }
+ }
+
+ /**
+ * Возвращает меру количества предмета расчета
+ * @return string Мера количества предмета расчета
+ */
+ public function getMeasure()
+ {
+ return $this->_measure;
+ }
+
+ /**
+ * Устанавливает меру количества предмета расчета
+ * @param string $value Мера количества предмета расчета
+ */
+ public function setMeasure($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_measure = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid measure value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.measure',
+ $value
+ );
+ } elseif (!in_array($value, ReceiptItemMeasure::getEnabledValues())) {
+ throw new InvalidPropertyValueException(
+ 'Invalid measure value in ReceiptItem',
+ 0,
+ 'ReceiptItem.measure',
+ $value
+ );
+ } else {
+ $this->_measure = $value;
+ }
+ }
+
+ /**
+ * Возвращает режим обработки кода маркировки
+ * @return string Режим обработки кода маркировки
+ */
+ public function getMarkMode()
+ {
+ return $this->_markMode;
+ }
+
+ /**
+ * Устанавливает режим обработки кода маркировки
+ * @param string $value Режим обработки кода маркировки
+ */
+ public function setMarkMode($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markMode = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markMode value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_mode',
+ $value
+ );
+ } else {
+ $this->_markMode = $value;
+ }
+ }
+
+ /**
+ * Возвращает дробное количество маркированного товара
+ * @return MarkQuantity Дробное количество маркированного товара
+ */
+ public function getMarkQuantity()
+ {
+ return $this->_markQuantity;
+ }
+
+ /**
+ * Устанавливает дробное количество маркированного товара
+ * @param array|MarkQuantity $value Дробное количество маркированного товара
+ */
+ public function setMarkQuantity($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markQuantity = null;
+ } else {
+ if (is_array($value)) {
+ $value = new MarkQuantity($value);
+ }
+ if (!($value instanceof MarkQuantity)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markQuantity value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_quantity',
+ $value
+ );
+ }
+
+ $this->_markQuantity = $value;
+ }
+ }
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getPaymentSubjectIndustryDetails()
+ {
+ return $this->_paymentSubjectIndustryDetails;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ */
+ public function setPaymentSubjectIndustryDetails($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_paymentSubjectIndustryDetails = null;
+ return $this;
+ }
+ if (!is_array($value) && !($value instanceof \Traversable)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid paymentSubjectIndustryDetails value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.payment_subject_industry_details',
+ $value
+ );
+ }
+ $details = array();
+ foreach ($value as $key => $item) {
+ if (is_array($item)) {
+ $item = new IndustryDetails($item);
+ }
+ if ($item instanceof IndustryDetails) {
+ $details[] = $item;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid paymentSubjectIndustryDetails value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.payment_subject_industry_details[' . $key . ']',
+ $item
+ );
+ }
+ }
+ $this->_paymentSubjectIndustryDetails = $details;
+
+ return $this;
+ }
+
+ /**
+ * Возвращает дополнительный реквизит предмета расчета
+ * @return string Дополнительный реквизит предмета расчета
+ */
+ public function getAdditionalPaymentSubjectProps()
+ {
+ return $this->_additionalPaymentSubjectProps;
+ }
+
+ /**
+ * Устанавливает дополнительный реквизит предмета расчета
+ * @param string $value Дополнительный реквизит предмета расчета
+ */
+ public function setAdditionalPaymentSubjectProps($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_additionalPaymentSubjectProps = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid additionalPaymentSubjectProps value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_mode',
+ $value
+ );
+ } else {
+ $this->_additionalPaymentSubjectProps = mb_substr($value, 0, self::ADD_PROPS_MAX_LENGTH);
+ }
+ }
+
/**
* Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
* @return string|null Код страны происхождения товара
@@ -388,15 +691,24 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_countryOfOriginCode = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid countryOfOriginCode value type', 0, 'ReceiptItem.countryOfOriginCode', $value
+ 'Invalid countryOfOriginCode value type',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
);
- } elseif (strlen((string)$value) != 2) {
+ } elseif (mb_strlen((string)$value) != 2) {
throw new InvalidPropertyValueException(
- 'Invalid countryOfOriginCode value: "'.$value.'"', 0, 'ReceiptItem.countryOfOriginCode', $value
+ 'Invalid countryOfOriginCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
);
} elseif (!preg_match('/^[A-Z]{2}$/', (string)$value)) {
throw new InvalidPropertyValueException(
- 'Invalid countryOfOriginCode value: "'.$value.'"', 0, 'ReceiptItem.countryOfOriginCode', $value
+ 'Invalid countryOfOriginCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
);
} else {
$this->_countryOfOriginCode = $value;
@@ -425,11 +737,17 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_customsDeclarationNumber = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid customsDeclarationNumber value type', 0, 'ReceiptItem.customsDeclarationNumber', $value
+ 'Invalid customsDeclarationNumber value type',
+ 0,
+ 'ReceiptItem.customsDeclarationNumber',
+ $value
);
- } elseif (strlen((string)$value) > 32) {
+ } elseif (mb_strlen((string)$value) > 32) {
throw new InvalidPropertyValueException(
- 'Invalid customsDeclarationNumber value: "'.$value.'"', 0, 'ReceiptItem.customsDeclarationNumber', $value
+ 'Invalid customsDeclarationNumber value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.customsDeclarationNumber',
+ $value
);
} else {
$this->_customsDeclarationNumber = $value;
@@ -458,11 +776,17 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
$this->_excise = null;
} elseif (!is_numeric($value)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid excise value type', 0, 'ReceiptItem.excise', $value
+ 'Invalid excise value type',
+ 0,
+ 'ReceiptItem.excise',
+ $value
);
} elseif ($value <= 0.0) {
throw new InvalidPropertyValueException(
- 'Invalid excise value in ReceiptItem', 0, 'ReceiptItem.excise', $value
+ 'Invalid excise value in ReceiptItem',
+ 0,
+ 'ReceiptItem.excise',
+ $value
);
} else {
$this->_excise = $value;
@@ -482,10 +806,13 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
if ($value === null || $value === '') {
$this->_shipping = false;
} elseif (TypeCast::canCastToBoolean($value)) {
- $this->_shipping = $value ? true : false;
+ $this->_shipping = (bool)$value;
} else {
throw new InvalidPropertyValueException(
- 'Invalid isShipping value in ReceiptItem', 0, 'ReceiptItem.isShipping', $value
+ 'Invalid isShipping value in ReceiptItem',
+ 0,
+ 'ReceiptItem.isShipping',
+ $value
);
}
@@ -505,14 +832,14 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
/**
* Устанавливает информацию о поставщике товара или услуги.
*
- * @param SupplierInterface|array $value
+ * @param SupplierInterface|array $value Информация о поставщике товара или услуги
+ * @return $this
*/
public function setSupplier($value)
{
if ($value === null || $value === '') {
- throw new EmptyPropertyValueException(
- 'Empty supplier value in receipt', 0, 'Receipt.supplier'
- );
+ $this->_supplier = null;
+ return $this;
}
if (is_array($value)) {
@@ -521,11 +848,16 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
if (!($value instanceof SupplierInterface)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid supplier value type in receipt', 0, 'Receipt.supplier', $value
+ 'Invalid supplier value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.supplier',
+ $value
);
}
$this->_supplier = $value;
+
+ return $this;
}
/**
@@ -535,24 +867,24 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
public function setAgentType($value)
{
if ($value === null || $value === '') {
- $this->_paymentMode = null;
+ $this->_agentType = null;
} elseif (!TypeCast::canCastToEnumString($value)) {
- throw new InvalidPropertyValueException(
- 'Invalid value for "agentType" parameter in Receipt.item.agentType',
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid value type for "agentType" parameter in ReceiptItem.agentType',
0,
- 'Receipt.item.agentType',
+ 'ReceiptItem.agentType',
$value
);
} elseif (!AgentType::valueExists($value)) {
throw new InvalidPropertyValueException(
- 'Invalid value for "agentType" parameter in Receipt.item.agentType',
+ 'Invalid value for "agentType" parameter in ReceiptItem.agentType',
0,
- 'Receipt.item.agentType',
+ 'ReceiptItem.agentType',
$value
);
+ } else {
+ $this->_agentType = $value;
}
-
- $this->_agentType = $value;
}
/**
@@ -565,7 +897,6 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
return $this->_agentType;
}
-
/**
* Проверяет, является ли текущий элемент чека доставкой
*
@@ -612,15 +943,25 @@ class ReceiptItem extends AbstractObject implements ReceiptItemInterface
{
if ($count === null || $count === '') {
throw new EmptyPropertyValueException(
- 'Empty quantity value in ReceiptItem in fetchItem method', 0, 'ReceiptItem.quantity'
+ 'Empty quantity value in ReceiptItem in fetchItem method',
+ 0,
+ 'ReceiptItem.quantity'
);
- } elseif (!is_numeric($count)) {
+ }
+ if (!is_numeric($count)) {
throw new InvalidPropertyValueTypeException(
- 'Invalid quantity value type in ReceiptItem in fetchItem method', 0, 'ReceiptItem.quantity', $count
+ 'Invalid quantity value type in ReceiptItem in fetchItem method',
+ 0,
+ 'ReceiptItem.quantity',
+ $count
);
- } elseif ($count <= 0.0 || $count >= $this->_quantity) {
+ }
+ if ($count <= 0.0 || $count >= $this->_quantity) {
throw new InvalidPropertyValueException(
- 'Invalid quantity value in ReceiptItem in fetchItem method', 0, 'ReceiptItem.quantity', $count
+ 'Invalid quantity value in ReceiptItem in fetchItem method',
+ 0,
+ 'ReceiptItem.quantity',
+ $count
);
}
diff --git a/lib/Model/ReceiptItemInterface.php b/lib/Model/ReceiptItemInterface.php
index 8bcb8dc9..624a7542 100644
--- a/lib/Model/ReceiptItemInterface.php
+++ b/lib/Model/ReceiptItemInterface.php
@@ -26,28 +26,46 @@
namespace YooKassa\Model;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
+use YooKassa\Model\Receipt\MarkQuantity;
+
/**
* Interface ReceiptItemInterface
*
* @package YooKassa
*
- * @property-read string $description Наименование товара
- * @property-read float $quantity Количество
+ * @property-read string $description Наименование товара (тег в 54 ФЗ — 1030)
+ * @property-read float $quantity Количество (тег в 54 ФЗ — 1023)
+ * @property-read string $measure Мера количества предмета расчета (тег в 54 ФЗ — 2108)
+ * @property-read MarkQuantity $markQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property-read MarkQuantity $mark_quantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
* @property-read float $amount Суммарная стоимость покупаемого товара в копейках/центах
- * @property-read AmountInterface $price Цена товара
- * @property-read int $vatCode Ставка НДС, число 1-6
- * @property-read int $vat_code Ставка НДС, число 1-6
- * @property-read string $paymentSubject Признак предмета расчета
- * @property-read string $payment_subject Признак предмета расчета
- * @property-read string $paymentMode Признак способа расчета
- * @property-read string $payment_mode Признак способа расчета
- * @property-read string $productCode Код товара
- * @property-read string $product_code Код товара
- * @property-read string $countryOfOriginCode Код страны происхождения товара
- * @property-read string $country_of_origin_code Код страны происхождения товара
- * @property-read string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов)
- * @property-read string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов)
- * @property-read float $excise Сумма акциза товара с учетом копеек
+ * @property-read AmountInterface $price Цена товара (тег в 54 ФЗ — 1079)
+ * @property-read int $vatCode Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property-read int $vat_code Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property-read string $paymentSubject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property-read string $payment_subject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property-read string $paymentMode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property-read string $payment_mode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property-read string $countryOfOriginCode Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property-read string $country_of_origin_code Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property-read string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property-read string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property-read float $excise Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
+ * @property-read string $productCode Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property-read string $product_code Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property-read MarkCodeInfo $markCodeInfo Код товара (тег в 54 ФЗ — 1163)
+ * @property-read MarkCodeInfo $mark_code_info Код товара (тег в 54 ФЗ — 1163)
+ * @property-read string $markMode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property-read string $mark_mode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property-read IndustryDetails[] $paymentSubjectIndustryDetails Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+ * @property-read IndustryDetails[] $payment_subject_industry_details Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+ * @property-read string $additionalPaymentSubjectProps Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+ * @property-read string $additional_payment_subject_props Дополнительный реквизит предмета расчета (тег в 54 ФЗ — 1191)
+ * @property-read Supplier $supplier Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
+ * @property-read string $agentType Тип посредника, реализующего товар или услугу
+ * @property-read string $agent_type Тип посредника, реализующего товар или услугу
*/
interface ReceiptItemInterface
{
@@ -55,84 +73,119 @@ interface ReceiptItemInterface
* Возвращает наименование товара
* @return string Наименование товара
*/
- function getDescription();
+ public function getDescription();
/**
* Возвращает количество товара
* @return float Количество купленного товара
*/
- function getQuantity();
+ public function getQuantity();
/**
* Возвращает общую стоимость покупаемого товара в копейках/центах
* @return float Сумма стоимости покупаемого товара
*/
- function getAmount();
+ public function getAmount();
/**
* Возвращает цену товара
* @return AmountInterface Цена товара
*/
- function getPrice();
+ public function getPrice();
/**
* Возвращает ставку НДС
* @return int|null Ставка НДС, число 1-6, или null, если ставка не задана
*/
- function getVatCode();
+ public function getVatCode();
/**
* Возвращает признак предмета расчета
* @return string|null Признак предмета расчета
*/
- function getPaymentSubject();
+ public function getPaymentSubject();
/**
* Возвращает признак способа расчета
* @return string|null Признак способа расчета
*/
- function getPaymentMode();
+ public function getPaymentMode();
/**
* Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
* @return string|null Код товара
*/
- function getProductCode();
+ public function getProductCode();
+
+ /**
+ * Возвращает код товара
+ * @return MarkCodeInfo Код товара
+ */
+ public function getMarkCodeInfo();
+
+ /**
+ * Возвращает меру количества предмета расчета
+ * @return string Мера количества предмета расчета
+ */
+ public function getMeasure();
+
+ /**
+ * Возвращает режим обработки кода маркировки
+ * @return string Режим обработки кода маркировки
+ */
+ public function getMarkMode();
+
+ /**
+ * Возвращает дробное количество маркированного товара
+ * @return MarkQuantity Дробное количество маркированного товара
+ */
+ public function getMarkQuantity();
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getPaymentSubjectIndustryDetails();
+
+ /**
+ * Возвращает дополнительный реквизит предмета расчета
+ * @return string Дополнительный реквизит предмета расчета
+ */
+ public function getAdditionalPaymentSubjectProps();
/**
* Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
* @return string|null Код страны происхождения товара
*/
- function getCountryOfOriginCode();
+ public function getCountryOfOriginCode();
/**
* Возвращает номер таможенной декларации
* @return string|null Номер таможенной декларации (от 1 до 32 символов)
*/
- function getCustomsDeclarationNumber();
+ public function getCustomsDeclarationNumber();
/**
* Возвращает сумму акциза товара с учетом копеек
* @return float|null Сумма акциза товара с учетом копеек
*/
- function getExcise();
+ public function getExcise();
/**
- * Возвращает информацию о поставщике товара или услуги.
- *
- * @return SupplierInterface
+ * Возвращает информацию о поставщике товара или услуги
+ * @return SupplierInterface Информация о поставщике товара или услуги
*/
- function getSupplier();
+ public function getSupplier();
/**
- * @return string
+ * Возвращает тип посредника, реализующего товар или услугу
+ * @return string Тип посредника, реализующего товар или услугу.
*/
- function getAgentType();
+ public function getAgentType();
/**
* Проверяет, является ли текущий элемент чека доставкой
* @return bool True если доставка, false если обычный товар
*/
- function isShipping();
-
+ public function isShipping();
}
diff --git a/lib/Request/Deals/CreateDealRequestBuilder.php b/lib/Request/Deals/CreateDealRequestBuilder.php
index b8ec9c1f..122f2d76 100644
--- a/lib/Request/Deals/CreateDealRequestBuilder.php
+++ b/lib/Request/Deals/CreateDealRequestBuilder.php
@@ -35,7 +35,7 @@ use YooKassa\Model\Metadata;
/**
* Класс билдера объектов запросов к API на создание платежа
*
- * @todo: @example 02-builder.php 11 78 Пример использования билдера
+ * @example 02-builder.php 11 78 Пример использования билдера
*
* @package YooKassa
*/
diff --git a/lib/Request/Payments/CreatePaymentRequestBuilder.php b/lib/Request/Payments/CreatePaymentRequestBuilder.php
index 498d63dc..7ddd66d5 100644
--- a/lib/Request/Payments/CreatePaymentRequestBuilder.php
+++ b/lib/Request/Payments/CreatePaymentRequestBuilder.php
@@ -43,6 +43,8 @@ use YooKassa\Model\Metadata;
use YooKassa\Model\Payment;
use YooKassa\Model\PaymentData\AbstractPaymentData;
use YooKassa\Model\PaymentData\PaymentDataFactory;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
use YooKassa\Model\Recipient;
use YooKassa\Model\RecipientInterface;
@@ -330,6 +332,45 @@ class CreatePaymentRequestBuilder extends AbstractPaymentRequestBuilder
return $this;
}
+ /**
+ * Устанавливает отраслевой реквизит чека
+ *
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ * @return self Инстанс билдера запросов
+ */
+ public function setReceiptAdditionalUserProps($value)
+ {
+ $this->receipt->setAdditionalUserProps($value);
+
+ return $this;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ *
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ * @return self Инстанс билдера запросов
+ */
+ public function setReceiptIndustryDetails($value)
+ {
+ $this->receipt->setReceiptIndustryDetails($value);
+
+ return $this;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ *
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ * @return self Инстанс билдера запросов
+ */
+ public function setReceiptOperationalDetails($value)
+ {
+ $this->receipt->setReceiptOperationalDetails($value);
+
+ return $this;
+ }
+
/**
* Строит и возвращает объект запроса для отправки в API ЮKassa
* @param array|null $options Массив параметров для установки в объект запроса
diff --git a/lib/Request/Payments/Payment/CreateCaptureRequestBuilder.php b/lib/Request/Payments/Payment/CreateCaptureRequestBuilder.php
index 4407ad98..86e45145 100644
--- a/lib/Request/Payments/Payment/CreateCaptureRequestBuilder.php
+++ b/lib/Request/Payments/Payment/CreateCaptureRequestBuilder.php
@@ -52,7 +52,7 @@ class CreateCaptureRequestBuilder extends AbstractPaymentRequestBuilder
/**
* Осуществляет сборку объекта запроса к API
* @param array|null $options Массив дополнительных настроек объекта
- * @return CreateCaptureRequestInterface|AbstractRequest Иснатс объекта запроса к API
+ * @return CreateCaptureRequestInterface|AbstractRequest Инстанс объекта запроса к API
*
* @throws InvalidRequestException Выбрасывается если при валидации запроса произошла ошибка
* @throws InvalidPropertyException Выбрасывается если не удалось установить один из параметров, переданных в массиве настроек
diff --git a/lib/Request/Payouts/CreatePayoutRequestBuilder.php b/lib/Request/Payouts/CreatePayoutRequestBuilder.php
index 29ec0a8e..dbf508ce 100644
--- a/lib/Request/Payouts/CreatePayoutRequestBuilder.php
+++ b/lib/Request/Payouts/CreatePayoutRequestBuilder.php
@@ -40,7 +40,7 @@ use YooKassa\Model\Deal\PayoutDealInfo;
/**
* Класс билдера объектов запросов к API на создание платежа
*
- * @todo: @example 02-builder.php 11 78 Пример использования билдера
+ * @example 02-builder.php 11 78 Пример использования билдера
*
* @package YooKassa
*/
diff --git a/lib/Request/Receipts/AbstractReceiptResponse.php b/lib/Request/Receipts/AbstractReceiptResponse.php
index 70b5039c..e489e1c0 100644
--- a/lib/Request/Receipts/AbstractReceiptResponse.php
+++ b/lib/Request/Receipts/AbstractReceiptResponse.php
@@ -32,6 +32,8 @@ use YooKassa\Common\Exceptions\EmptyPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
use YooKassa\Helpers\TypeCast;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
use YooKassa\Model\ReceiptRegistrationStatus;
use YooKassa\Model\ReceiptType;
use YooKassa\Model\Settlement;
@@ -59,10 +61,14 @@ use YooKassa\Model\SettlementInterface;
* @property \DateTime $registered_at Дата и время формирования чека в фискальном накопителе.
* @property int $taxSystemCode Код системы налогообложения. Число 1-6.
* @property int $tax_system_code Код системы налогообложения. Число 1-6.
- * @property ReceiptResponseItemInterface[] $items Список товаров в заказе
+ * @property IndustryDetails[] $receiptIndustryDetails Отраслевой реквизит чека.
+ * @property IndustryDetails[] $receipt_industry_details Отраслевой реквизит чека.
+ * @property OperationalDetails $receiptOperationalDetails Операционный реквизит чека.
+ * @property OperationalDetails $receipt_operational_details Операционный реквизит чека.
+ * @property ReceiptResponseItemInterface[] $items Список товаров в заказе.
* @property SettlementInterface[] $settlements Перечень совершенных расчетов.
- * @property string $onBehalfOf Идентификатор магазина
- * @property string $on_behalf_of Идентификатор магазина
+ * @property string $onBehalfOf Идентификатор магазина.
+ * @property string $on_behalf_of Идентификатор магазина.
*/
abstract class AbstractReceiptResponse extends AbstractObject implements ReceiptResponseInterface
{
@@ -111,77 +117,31 @@ abstract class AbstractReceiptResponse extends AbstractObject implements Receipt
/** @var int Код системы налогообложения. Число 1-6. */
private $_taxSystemCode;
+ /** @var IndustryDetails[] Отраслевой реквизит предмета расчета */
+ private $_receiptIndustryDetails;
+
+ /** @var OperationalDetails Операционный реквизит чека */
+ private $_receiptOperationalDetails;
+
/** @var string Идентификатор магазина */
private $_onBehalfOf;
/**
* AbstractReceiptResponse constructor.
*
- * @param mixed $receiptData
+ * @param mixed $sourceArray
* @throws \Exception
*/
- public function fromArray($receiptData)
+ public function fromArray($sourceArray)
{
- if (!empty($receiptData['id'])) {
- $this->setId($receiptData['id']);
+ parent::fromArray($sourceArray);
+ if (!empty($sourceArray['refund_id']) || !empty($sourceArray['payment_id'])) {
+ $this->setObjectId($this->factoryObjectId($sourceArray));
}
- if (!empty($receiptData['type'])) {
- $this->setType($receiptData['type']);
+ if (!empty($sourceArray['registered_at'])) {
+ $this->setRegisteredAt(new DateTime($sourceArray['registered_at']));
}
- if (!empty($receiptData['refund_id']) || !empty($receiptData['payment_id'])) {
- $this->setObjectId($this->factoryObjectId($receiptData));
- }
- if (!empty($receiptData['status'])) {
- $this->setStatus($receiptData['status']);
- }
-
- if (!empty($receiptData['tax_system_code'])) {
- $this->setTaxSystemCode($receiptData['tax_system_code']);
- }
- if (!empty($receiptData['fiscal_document_number'])) {
- $this->setFiscalDocumentNumber($receiptData['fiscal_document_number']);
- }
- if (!empty($receiptData['fiscal_storage_number'])) {
- $this->setFiscalStorageNumber($receiptData['fiscal_storage_number']);
- }
- if (!empty($receiptData['fiscal_attribute'])) {
- $this->setFiscalAttribute($receiptData['fiscal_attribute']);
- }
- if (!empty($receiptData['registered_at'])) {
- $this->setRegisteredAt(new DateTime($receiptData['registered_at']));
- }
- if (!empty($receiptData['fiscal_provider_id'])) {
- $this->setFiscalProviderId($receiptData['fiscal_provider_id']);
- }
- if (!empty($receiptData['items'])) {
- if (is_array($receiptData['items']) && count($receiptData['items'])) {
- $itemsArray = array();
- foreach ($receiptData['items'] as $item) {
- $itemsArray[] = new ReceiptResponseItem($item);
- }
- $this->setItems($itemsArray);
- } else {
- throw new EmptyPropertyValueException('Empty items value in receipt', 0, 'receipt.items');
- }
- } else {
- throw new EmptyPropertyValueException('Empty items value in receipt', 0, 'receipt.items');
- }
- if (!empty($receiptData['settlements'])) {
- if (is_array($receiptData['settlements']) && count($receiptData['settlements'])) {
- $itemsArray = array();
- foreach ($receiptData['settlements'] as $item) {
- $itemsArray[] = new Settlement($item);
- }
- $this->setSettlements($itemsArray);
- } else {
- throw new EmptyPropertyValueException('Empty settlements value in receipt', 0, 'receipt.settlements');
- }
- }
- if (!empty($receiptData['on_behalf_of'])) {
- $this->setOnBehalfOf($receiptData['on_behalf_of']);
- }
-
- $this->setSpecificProperties($receiptData);
+ $this->setSpecificProperties($sourceArray);
}
/**
@@ -204,7 +164,7 @@ abstract class AbstractReceiptResponse extends AbstractObject implements Receipt
public function setId($value)
{
if (TypeCast::canCastToString($value)) {
- if (strlen((string)$value) !== self::LENGTH_RECEIPT_ID) {
+ if (mb_strlen((string)$value) !== self::LENGTH_RECEIPT_ID) {
throw new InvalidPropertyValueException('Invalid receipt id value', 0, 'Receipt.id', $value);
}
$this->_id = (string)$value;
@@ -459,7 +419,9 @@ abstract class AbstractReceiptResponse extends AbstractObject implements Receipt
}
$this->_items = array();
foreach ($value as $key => $val) {
- if (is_object($val) && $val instanceof ReceiptResponseItemInterface) {
+ if (is_array($val)) {
+ $this->addItem(new ReceiptResponseItem($val));
+ } elseif ($val instanceof ReceiptResponseItemInterface) {
$this->addItem($val);
} else {
throw new InvalidPropertyValueTypeException(
@@ -566,6 +528,91 @@ abstract class AbstractReceiptResponse extends AbstractObject implements Receipt
}
}
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getReceiptIndustryDetails()
+ {
+ return $this->_receiptIndustryDetails;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptIndustryDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptIndustryDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof \Traversable)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details',
+ $value
+ );
+ }
+ $details = array();
+ foreach ($value as $key => $item) {
+ if (is_array($item)) {
+ $item = new IndustryDetails($item);
+ }
+ if ($item instanceof IndustryDetails) {
+ $details[] = $item;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details[' . $key . ']',
+ $item
+ );
+ }
+ }
+ $this->_receiptIndustryDetails = $details;
+ }
+
+ /**
+ * Возвращает операционный реквизит чека
+ * @return OperationalDetails Операционный реквизит чека
+ */
+ public function getReceiptOperationalDetails()
+ {
+ return $this->_receiptOperationalDetails;
+ }
+
+ /**
+ * Устанавливает операционный реквизит чека
+ * @param array|OperationalDetails $value Операционный реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptOperationalDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptOperationalDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof OperationalDetails)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptOperationalDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_operational_details',
+ $value
+ );
+ }
+
+ if (is_array($value)) {
+ $value = new OperationalDetails($value);
+ }
+
+ $this->_receiptOperationalDetails = $value;
+ }
+
/**
* @inheritdoc
*
diff --git a/lib/Request/Receipts/CreatePostReceiptRequest.php b/lib/Request/Receipts/CreatePostReceiptRequest.php
index 4a31ead7..ea968620 100644
--- a/lib/Request/Receipts/CreatePostReceiptRequest.php
+++ b/lib/Request/Receipts/CreatePostReceiptRequest.php
@@ -32,6 +32,9 @@ use YooKassa\Common\Exceptions\EmptyPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
use YooKassa\Helpers\TypeCast;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
use YooKassa\Model\ReceiptCustomer;
use YooKassa\Model\ReceiptCustomerInterface;
use YooKassa\Model\ReceiptItem;
@@ -61,6 +64,15 @@ class CreatePostReceiptRequest extends AbstractRequest implements CreatePostRece
/** @var int Код системы налогообложения. Число 1-6. */
private $_taxSystemCode;
+ /** @var AdditionalUserProps Дополнительный реквизит пользователя */
+ private $_additionalUserProps;
+
+ /** @var IndustryDetails[] Отраслевой реквизит предмета расчета */
+ private $_receiptIndustryDetails;
+
+ /** @var OperationalDetails Операционный реквизит чека */
+ private $_receiptOperationalDetails;
+
/** @var ReceiptItemInterface[] Список товаров в заказе */
private $_items = array();
@@ -148,13 +160,13 @@ class CreatePostReceiptRequest extends AbstractRequest implements CreatePostRece
/**
* Устанавливает информацию о плательщике
*
- * @param ReceiptCustomerInterface $value
+ * @param ReceiptCustomerInterface|array $value Информация о плательщике
*/
public function setCustomer($value)
{
if (is_array($value)) {
$this->_customer = new ReceiptCustomer($value);
- } elseif (is_object($value) && $value instanceof ReceiptCustomerInterface) {
+ } elseif ($value instanceof ReceiptCustomerInterface) {
$this->_customer = $value;
} else {
throw new InvalidPropertyValueTypeException(
@@ -201,7 +213,7 @@ class CreatePostReceiptRequest extends AbstractRequest implements CreatePostRece
foreach ($value as $key => $item) {
if (is_array($item)) {
$this->addItem(new ReceiptItem($item));
- } elseif (is_object($item) && $item instanceof ReceiptItemInterface) {
+ } elseif ($item instanceof ReceiptItemInterface) {
$this->addItem($item);
} else {
throw new InvalidPropertyValueTypeException(
@@ -263,6 +275,123 @@ class CreatePostReceiptRequest extends AbstractRequest implements CreatePostRece
}
}
+ /**
+ * Возвращает дополнительный реквизит пользователя
+ *
+ * @return AdditionalUserProps Дополнительный реквизит пользователя
+ */
+ public function getAdditionalUserProps()
+ {
+ return $this->_additionalUserProps;
+ }
+
+ /**
+ * Устанавливает дополнительный реквизит пользователя
+ *
+ * @param AdditionalUserProps|array $value Дополнительный реквизит пользователя
+ */
+ public function setAdditionalUserProps($value)
+ {
+ if (empty($value)) {
+ $this->_additionalUserProps = null;
+ return;
+ }
+ if (is_array($value)) {
+ $this->_additionalUserProps = new AdditionalUserProps($value);
+ } elseif ($value instanceof AdditionalUserProps) {
+ $this->_additionalUserProps = $value;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid additionalUserProps value type in receipt', 0, 'Receipt.additional_user_props', $value
+ );
+ }
+ }
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getReceiptIndustryDetails()
+ {
+ return $this->_receiptIndustryDetails;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptIndustryDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptIndustryDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof \Traversable)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details',
+ $value
+ );
+ }
+ $details = array();
+ foreach ($value as $key => $item) {
+ if (is_array($item)) {
+ $item = new IndustryDetails($item);
+ }
+ if ($item instanceof IndustryDetails) {
+ $details[] = $item;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptIndustryDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_industry_details[' . $key . ']',
+ $item
+ );
+ }
+ }
+ $this->_receiptIndustryDetails = $details;
+ }
+
+ /**
+ * Возвращает операционный реквизит чека
+ * @return OperationalDetails Операционный реквизит чека
+ */
+ public function getReceiptOperationalDetails()
+ {
+ return $this->_receiptOperationalDetails;
+ }
+
+ /**
+ * Устанавливает операционный реквизит чека
+ * @param array|OperationalDetails $value Операционный реквизит чека
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если переданный аргумент - не массив
+ */
+ public function setReceiptOperationalDetails($value)
+ {
+ if (empty($value)) {
+ $this->_receiptOperationalDetails = null;
+ return;
+ }
+ if (!is_array($value) && !($value instanceof OperationalDetails)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid receiptOperationalDetails value type in Receipt',
+ 0,
+ 'Receipt.receipt_operational_details',
+ $value
+ );
+ }
+
+ if (is_array($value)) {
+ $value = new OperationalDetails($value);
+ }
+
+ $this->_receiptOperationalDetails = $value;
+ }
+
/**
* Возвращает тип чека в онлайн-кассе
*
@@ -485,5 +614,4 @@ class CreatePostReceiptRequest extends AbstractRequest implements CreatePostRece
return true;
}
-
}
diff --git a/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php b/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php
index 1b859bf5..749aa843 100644
--- a/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php
+++ b/lib/Request/Receipts/CreatePostReceiptRequestBuilder.php
@@ -27,11 +27,14 @@
namespace YooKassa\Request\Receipts;
+use YooKassa\Common\AbstractPaymentRequestBuilder;
use YooKassa\Common\AbstractRequest;
use YooKassa\Common\AbstractRequestBuilder;
use YooKassa\Common\Exceptions\InvalidRequestException;
use YooKassa\Model\AmountInterface;
use YooKassa\Model\MonetaryAmount;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
use YooKassa\Model\ReceiptCustomer;
use YooKassa\Model\ReceiptCustomerInterface;
use YooKassa\Model\ReceiptItemInterface;
@@ -170,6 +173,41 @@ class CreatePostReceiptRequestBuilder extends AbstractRequestBuilder
return $this;
}
+ /**
+ * Устанавливает дополнительный реквизит пользователя
+ *
+ * @param AdditionalUserProps|array $value Дополнительный реквизит пользователя
+ * @return CreatePostReceiptRequestBuilder Инстанс билдера запросов
+ */
+ public function setAdditionalUserProps($value)
+ {
+ $this->currentObject->setAdditionalUserProps($value);
+ return $this;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ *
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ CreatePostReceiptRequestBuilder */
+ public function setReceiptIndustryDetails($value)
+ {
+ $this->currentObject->setReceiptIndustryDetails($value);
+ return $this;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ *
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ * @return CreatePostReceiptRequestBuilder Инстанс билдера запросов
+ */
+ public function setReceiptOperationalDetails($value)
+ {
+ $this->currentObject->setReceiptOperationalDetails($value);
+ return $this;
+ }
+
/**
* Устанавливает тип чека в онлайн-кассе
*
@@ -227,7 +265,7 @@ class CreatePostReceiptRequestBuilder extends AbstractRequestBuilder
* @param string|null $type Тип объекта чека
* @return CreatePostReceiptRequestBuilder
*/
- public function setObjectId($value, $type=null)
+ public function setObjectId($value, $type = null)
{
$this->currentObject->setObjectId($value);
if (!empty($type)) {
@@ -272,5 +310,4 @@ class CreatePostReceiptRequestBuilder extends AbstractRequestBuilder
return parent::build($options);
}
-
}
diff --git a/lib/Request/Receipts/CreatePostReceiptRequestInterface.php b/lib/Request/Receipts/CreatePostReceiptRequestInterface.php
index f15b1e87..9bd482d2 100644
--- a/lib/Request/Receipts/CreatePostReceiptRequestInterface.php
+++ b/lib/Request/Receipts/CreatePostReceiptRequestInterface.php
@@ -26,6 +26,9 @@
namespace YooKassa\Request\Receipts;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
use YooKassa\Model\ReceiptCustomer;
use YooKassa\Model\ReceiptCustomerInterface;
use YooKassa\Model\ReceiptItemInterface;
@@ -44,8 +47,13 @@ use YooKassa\Model\SupplierInterface;
* @property ReceiptCustomer $customer Информация о плательщике
* @property int $taxSystemCode Код системы налогообложения. Число 1-6
* @property int $tax_system_code Код системы налогообложения. Число 1-6
+ * @property AdditionalUserProps $additionalUserProps Дополнительный реквизит пользователя
+ * @property AdditionalUserProps $additional_user_props Дополнительный реквизит пользователя
+ * @property IndustryDetails[] $receiptIndustryDetails Отраслевой реквизит чека
+ * @property IndustryDetails[] $receipt_industry_details Отраслевой реквизит чека
+ * @property OperationalDetails $receiptOperationalDetails Операционный реквизит чека
+ * @property OperationalDetails $receipt_operational_details Операционный реквизит чека
* @property ReceiptItemInterface[] $items Список товаров в заказе
- * @property SupplierInterface $supplier Информация о поставщике товара или услуги
* @property SettlementInterface[] $settlements Массив оплат, обеспечивающих выдачу товара
*/
interface CreatePostReceiptRequestInterface
@@ -110,6 +118,45 @@ interface CreatePostReceiptRequestInterface
*/
public function setTaxSystemCode($value);
+ /**
+ * Возвращает дополнительный реквизит пользователя
+ *
+ * @return AdditionalUserProps Дополнительный реквизит пользователя
+ */
+ public function getAdditionalUserProps();
+
+ /**
+ * Устанавливает дополнительный реквизит пользователя
+ *
+ * @param AdditionalUserProps $value Дополнительный реквизит пользователя
+ * @return CreatePostReceiptRequestInterface
+ */
+ public function setAdditionalUserProps($value);
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getReceiptIndustryDetails();
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ */
+ public function setReceiptIndustryDetails($value);
+
+ /**
+ * Возвращает операционный реквизит чека
+ * @return OperationalDetails Операционный реквизит чека
+ */
+ public function getReceiptOperationalDetails();
+
+ /**
+ * Устанавливает операционный реквизит чека
+ * @param array|OperationalDetails $value Операционный реквизит чека
+ */
+ public function setReceiptOperationalDetails($value);
+
/**
* Возвращает информацию о плательщике.
*
@@ -182,5 +229,5 @@ interface CreatePostReceiptRequestInterface
* Проверяет есть ли в чеке хотя бы одна позиция
* @return bool True если чек не пуст, false если в чеке нет ни одной позиции
*/
- function notEmpty();
+ public function notEmpty();
}
diff --git a/lib/Request/Receipts/PaymentReceiptResponse.php b/lib/Request/Receipts/PaymentReceiptResponse.php
index 94f97a33..7f4a7bfc 100644
--- a/lib/Request/Receipts/PaymentReceiptResponse.php
+++ b/lib/Request/Receipts/PaymentReceiptResponse.php
@@ -81,7 +81,7 @@ class PaymentReceiptResponse extends AbstractReceiptResponse
$this->_payment_id = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException('Invalid payment_id value type', 0, 'Receipt.paymentId');
- } elseif (strlen((string)$value) !== self::LENGTH_PAYMENT_ID) {
+ } elseif (mb_strlen((string)$value) !== self::LENGTH_PAYMENT_ID) {
throw new InvalidPropertyValueException(
'Invalid payment_id value: "'.$value.'"', 0, 'Receipt.paymentId', $value
);
diff --git a/lib/Request/Receipts/ReceiptResponseInterface.php b/lib/Request/Receipts/ReceiptResponseInterface.php
index 6c87fb61..36e8f7bc 100644
--- a/lib/Request/Receipts/ReceiptResponseInterface.php
+++ b/lib/Request/Receipts/ReceiptResponseInterface.php
@@ -98,5 +98,5 @@ interface ReceiptResponseInterface
* Проверяет есть ли в чеке хотя бы одна позиция
* @return bool True если чек не пуст, false если в чеке нет ни одной позиции
*/
- function notEmpty();
+ public function notEmpty();
}
diff --git a/lib/Request/Receipts/ReceiptResponseItem.php b/lib/Request/Receipts/ReceiptResponseItem.php
index 2287d1c3..327a1ebf 100644
--- a/lib/Request/Receipts/ReceiptResponseItem.php
+++ b/lib/Request/Receipts/ReceiptResponseItem.php
@@ -30,10 +30,16 @@ use YooKassa\Common\AbstractObject;
use YooKassa\Common\Exceptions\EmptyPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueException;
use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
+use YooKassa\Helpers\ProductCode;
use YooKassa\Helpers\TypeCast;
use YooKassa\Model\AmountInterface;
use YooKassa\Model\MonetaryAmount;
+use YooKassa\Model\Receipt\AgentType;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
+use YooKassa\Model\Receipt\MarkQuantity;
use YooKassa\Model\Receipt\ReceiptItemAmount;
+use YooKassa\Model\Receipt\ReceiptItemMeasure;
use YooKassa\Model\Supplier;
use YooKassa\Model\SupplierInterface;
@@ -42,77 +48,155 @@ use YooKassa\Model\SupplierInterface;
*
* @package YooKassa
*
- * @property string $description Название товара (не более 128 символов).
- * @property float $quantity Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы.
- * @property float $amount Суммарная стоимость товара в копейках/центах
- * @property AmountInterface $price Цена товара
- * @property int $vatCode Ставка НДС, число 1-6
- * @property int $vat_code Ставка НДС, число 1-6
- * @property string $paymentSubject Признак предмета расчета
- * @property string $payment_subject Признак предмета расчета
- * @property string $paymentMode Признак способа расчета
- * @property string $payment_mode Признак способа расчета
+ * @property string $description Наименование товара (тег в 54 ФЗ — 1030)
+ * @property float $quantity Количество (тег в 54 ФЗ — 1023)
+ * @property float $amount Суммарная стоимость покупаемого товара в копейках/центах
+ * @property AmountInterface $price Цена товара (тег в 54 ФЗ — 1079)
+ * @property int $vatCode Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property int $vat_code Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property string $paymentSubject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property string $payment_subject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property string $paymentMode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property string $payment_mode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property string $countryOfOriginCode Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property string $country_of_origin_code Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property float $excise Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
+ * @property Supplier $supplier Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
+ * @property string $agentType Тип посредника, реализующего товар или услугу
+ * @property string $agent_type Тип посредника, реализующего товар или услугу
+ * @property MarkCodeInfo $markCodeInfo Код товара (тег в 54 ФЗ — 1163)
+ * @property MarkCodeInfo $mark_code_info Код товара (тег в 54 ФЗ — 1163)
+ * @property string $measure Мера количества предмета расчета (тег в 54 ФЗ — 2108)
+ * @property string $productCode Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property string $product_code Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property string $markMode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property string $mark_mode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property MarkQuantity $markQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property MarkQuantity $mark_quantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property IndustryDetails[] $paymentSubjectIndustryDetails Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
+ * @property IndustryDetails[] $payment_subject_industry_details Отраслевой реквизит предмета расчета (тег в 54 ФЗ — 1260)
*/
class ReceiptResponseItem extends AbstractObject implements ReceiptResponseItemInterface
{
+ /** @var int Длина поля кода страны происхождения товара */
+ const COUNTRY_CODE_LENGTH = 2;
+ /** @var int Максимальная длина номера таможенной декларации */
+ const MAX_DECLARATION_NUMBER_LENGTH = 32;
+ /** @var int Максимальная длина кода товара */
+ const MAX_PRODUCT_CODE_LENGTH = 96;
/**
- * @var string Наименование товара
+ * @var string Наименование товара (тег в 54 ФЗ — 1030)
*/
private $_description;
/**
- * @var float Количество
+ * @var float Количество (тег в 54 ФЗ — 1023)
*/
private $_quantity;
/**
- * @var ReceiptItemAmount Цена товара
+ * @var ReceiptItemAmount Цена товара (тег в 54 ФЗ — 1079)
*/
private $_amount;
/**
- * @var int Ставка НДС, число 1-6
+ * @var int Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
*/
private $_vatCode;
/**
- * @var string Признак предмета расчета
+ * @var string Признак предмета расчета (тег в 54 ФЗ — 1212)
*/
private $_paymentSubject;
/**
- * @var string Признак способа расчета
+ * @var string Признак способа расчета (тег в 54 ФЗ — 1214)
*/
private $_paymentMode;
/**
- * @var SupplierInterface Информация о поставщике товара или услуги
+ * @var string Код страны происхождения товара
+ */
+ private $_countryOfOriginCode;
+
+ /**
+ * @var string Номер таможенной декларации (от 1 до 32 символов).
+ */
+ private $_customsDeclarationNumber;
+
+ /**
+ * @var float Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229). Десятичное число с точностью до 2 символов после точки.
+ */
+ private $_excise;
+
+ /**
+ * @var SupplierInterface Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
*/
private $_supplier;
+ /**
+ * @var string Тип посредника, реализующего товар или услугу
+ */
+ private $_agentType;
+
+ /**
+ * @var MarkCodeInfo Код товара (тег в 54 ФЗ — 1163).
+ * Обязателен при использовании протокола ФФД 1.2, если товар нужно маркировать. Должно быть заполнено хотя бы одно из полей.
+ */
+ private $_markCodeInfo;
+
+ /**
+ * @var string Мера количества предмета расчета (тег в 54 ФЗ — 2108) — единица измерения товара, например штуки, граммы.
+ * Обязателен при использовании ФФД 1.2.
+ */
+ private $_measure;
+
+ /**
+ * @var IndustryDetails[] Отраслевой реквизит чека (тег в 54 ФЗ — 1260).
+ */
+ private $_paymentSubjectIndustryDetails;
+
+ /**
+ * @var string Код товара.
+ */
+ private $_productCode;
+
+ /**
+ * @var string Режим обработки кода маркировки (тег в 54 ФЗ — 2102). Должен принимать значение равное «0».
+ */
+ private $_markMode;
+
+ /**
+ * @var MarkQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291).
+ */
+ private $_markQuantity;
+
/**
* Устанавливает значения свойств текущего объекта из массива
*
- * @param array $itemData Массив с информацией о товаре, пришедший от API
+ * @param array $sourceArray Массив с информацией о товаре, пришедший от API
*/
- public function fromArray($itemData)
+ public function fromArray($sourceArray)
{
- $this->setDescription($itemData['description']);
- $this->setQuantity($itemData['quantity']);
- $this->setPrice($this->factoryAmount($itemData['amount']));
- $this->setVatCode($itemData['vat_code']);
-
- if (!empty($itemData['payment_mode'])) {
- $this->setPaymentMode($itemData['payment_mode']);
- }
-
- if (!empty($itemData['payment_subject'])) {
- $this->setPaymentSubject($itemData['payment_subject']);
- }
-
- if (!empty($itemData['supplier'])) {
- $this->setSupplier($itemData['supplier']);
- }
+// $this->setDescription($sourceArray['description']);
+// $this->setQuantity($sourceArray['quantity']);
+// $this->setVatCode($sourceArray['vat_code']);
+//
+// if (!empty($sourceArray['payment_mode'])) {
+// $this->setPaymentMode($sourceArray['payment_mode']);
+// }
+//
+// if (!empty($sourceArray['payment_subject'])) {
+// $this->setPaymentSubject($sourceArray['payment_subject']);
+// }
+//
+// if (!empty($sourceArray['supplier'])) {
+// $this->setSupplier($sourceArray['supplier']);
+// }
+ parent::fromArray($sourceArray);
+ $this->setPrice($this->factoryAmount($sourceArray['amount']));
}
/**
@@ -308,6 +392,360 @@ class ReceiptResponseItem extends AbstractObject implements ReceiptResponseItemI
}
}
+ /**
+ * Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
+ * @return string|null Код страны происхождения товара
+ */
+ public function getCountryOfOriginCode()
+ {
+ return $this->_countryOfOriginCode;
+ }
+
+ /**
+ * Устанавливает код страны происхождения товара по общероссийскому классификатору стран мира
+ *
+ * @param string $value Код страны происхождения товара
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если в качестве аргумента была передана не строка
+ */
+ public function setCountryOfOriginCode($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_countryOfOriginCode = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid countryOfOriginCode value type',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
+ );
+ } elseif (mb_strlen((string)$value) !== self::COUNTRY_CODE_LENGTH) {
+ throw new InvalidPropertyValueException(
+ 'Invalid countryOfOriginCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
+ );
+ } elseif (!preg_match('/^[A-Z]{2}$/', (string)$value)) {
+ throw new InvalidPropertyValueException(
+ 'Invalid countryOfOriginCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.countryOfOriginCode',
+ $value
+ );
+ } else {
+ $this->_countryOfOriginCode = $value;
+ }
+ }
+
+ /**
+ * Возвращает номер таможенной декларации
+ * @return string|null Номер таможенной декларации (от 1 до 32 символов)
+ */
+ public function getCustomsDeclarationNumber()
+ {
+ return $this->_customsDeclarationNumber;
+ }
+
+ /**
+ * Устанавливает номер таможенной декларации (от 1 до 32 символов)
+ *
+ * @param string $value Номер таможенной декларации
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если в качестве аргумента была передана не строка
+ */
+ public function setCustomsDeclarationNumber($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_customsDeclarationNumber = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid customsDeclarationNumber value type',
+ 0,
+ 'ReceiptItem.customsDeclarationNumber',
+ $value
+ );
+ } elseif (mb_strlen((string)$value) > self::MAX_DECLARATION_NUMBER_LENGTH) {
+ throw new InvalidPropertyValueException(
+ 'Invalid customsDeclarationNumber value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.customsDeclarationNumber',
+ $value
+ );
+ } else {
+ $this->_customsDeclarationNumber = $value;
+ }
+ }
+
+ /**
+ * Возвращает сумму акциза товара с учетом копеек
+ * @return float|null Сумма акциза товара с учетом копеек
+ */
+ public function getExcise()
+ {
+ return $this->_excise;
+ }
+
+ /**
+ * Устанавливает сумму акциза товара с учетом копеек
+ *
+ * @param float $value Сумма акциза товара с учетом копеек
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если в качестве аргумента было передано не число
+ */
+ public function setExcise($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_excise = null;
+ } elseif (!is_numeric($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid excise value type',
+ 0,
+ 'ReceiptItem.excise',
+ $value
+ );
+ } elseif ($value <= 0.0) {
+ throw new InvalidPropertyValueException(
+ 'Invalid excise value in ReceiptItem',
+ 0,
+ 'ReceiptItem.excise',
+ $value
+ );
+ } else {
+ $this->_excise = $value;
+ }
+ }
+
+ /**
+ * Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+ * @return string|null Код товара
+ */
+ public function getProductCode()
+ {
+ return $this->_productCode;
+ }
+
+ /**
+ * Устанавливает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+ *
+ * @param string|ProductCode $value Код товара
+ *
+ * @throws InvalidPropertyValueTypeException Выбрасывается если в качестве аргумента была передана не строка
+ */
+ public function setProductCode($value)
+ {
+ if ($value instanceof ProductCode) {
+ $value = (string)$value;
+ }
+ if ($value === null || $value === '') {
+ $this->_productCode = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid productCode value type',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
+ );
+ } elseif (mb_strlen((string)$value) > self::MAX_PRODUCT_CODE_LENGTH) {
+ throw new InvalidPropertyValueException(
+ 'Invalid productCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
+ );
+ } elseif (!preg_match('/^[0-9A-F ]{2,96}$/', (string)$value)) {
+ throw new InvalidPropertyValueException(
+ 'Invalid productCode value: "' . $value . '"',
+ 0,
+ 'ReceiptItem.productCode',
+ $value
+ );
+ } else {
+ $this->_productCode = $value;
+ }
+ }
+
+ /**
+ * Возвращает код товара
+ * @return MarkCodeInfo Код товара
+ */
+ public function getMarkCodeInfo()
+ {
+ return $this->_markCodeInfo;
+ }
+
+ /**
+ * Устанавливает код товара
+ * @param array|MarkCodeInfo $value Код товара
+ */
+ public function setMarkCodeInfo($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markCodeInfo = null;
+ } else {
+ if (is_array($value)) {
+ $value = new MarkCodeInfo($value);
+ }
+ if (!($value instanceof MarkCodeInfo)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markCodeInfo value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_code_info',
+ $value
+ );
+ }
+
+ $this->_markCodeInfo = $value;
+ }
+ }
+
+ /**
+ * Возвращает меру количества предмета расчета
+ * @return string Мера количества предмета расчета
+ */
+ public function getMeasure()
+ {
+ return $this->_measure;
+ }
+
+ /**
+ * Устанавливает меру количества предмета расчета
+ * @param string $value Мера количества предмета расчета
+ */
+ public function setMeasure($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_measure = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid measure value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.measure',
+ $value
+ );
+ } elseif (!in_array($value, ReceiptItemMeasure::getEnabledValues())) {
+ throw new InvalidPropertyValueException(
+ 'Invalid measure value in ReceiptItem',
+ 0,
+ 'ReceiptItem.measure',
+ $value
+ );
+ } else {
+ $this->_measure = $value;
+ }
+ }
+
+ /**
+ * Возвращает режим обработки кода маркировки
+ * @return string Режим обработки кода маркировки
+ */
+ public function getMarkMode()
+ {
+ return $this->_markMode;
+ }
+
+ /**
+ * Устанавливает режим обработки кода маркировки
+ * @param string $value Режим обработки кода маркировки
+ */
+ public function setMarkMode($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markMode = null;
+ } elseif (!TypeCast::canCastToString($value)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markMode value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_mode',
+ $value
+ );
+ } else {
+ $this->_markMode = $value;
+ }
+ }
+
+ /**
+ * Возвращает дробное количество маркированного товара
+ * @return MarkQuantity Дробное количество маркированного товара
+ */
+ public function getMarkQuantity()
+ {
+ return $this->_markQuantity;
+ }
+
+ /**
+ * Устанавливает дробное количество маркированного товара
+ * @param array|MarkQuantity $value Дробное количество маркированного товара
+ */
+ public function setMarkQuantity($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_markQuantity = null;
+ } else {
+ if (is_array($value)) {
+ $value = new MarkQuantity($value);
+ }
+ if (!($value instanceof MarkQuantity)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid markQuantity value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.mark_quantity',
+ $value
+ );
+ }
+
+ $this->_markQuantity = $value;
+ }
+ }
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getPaymentSubjectIndustryDetails()
+ {
+ return $this->_paymentSubjectIndustryDetails;
+ }
+
+ /**
+ * Устанавливает отраслевой реквизит чека
+ * @param array|IndustryDetails[] $value Отраслевой реквизит чека
+ */
+ public function setPaymentSubjectIndustryDetails($value)
+ {
+ if (empty($value)) {
+ $this->_paymentSubjectIndustryDetails = null;
+ return $this;
+ }
+ if (!is_array($value) && !($value instanceof \Traversable)) {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid paymentSubjectIndustryDetails value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.payment_subject_industry_details',
+ $value
+ );
+ }
+ $details = array();
+ foreach ($value as $key => $item) {
+ if (is_array($item)) {
+ $item = new IndustryDetails($item);
+ }
+ if ($item instanceof IndustryDetails) {
+ $details[] = $item;
+ } else {
+ throw new InvalidPropertyValueTypeException(
+ 'Invalid paymentSubjectIndustryDetails value type in ReceiptItem',
+ 0,
+ 'ReceiptItem.payment_subject_industry_details[' . $key . ']',
+ $item
+ );
+ }
+ }
+ $this->_paymentSubjectIndustryDetails = $details;
+
+ return $this;
+ }
+
/**
* @return SupplierInterface
*/
@@ -342,6 +780,43 @@ class ReceiptResponseItem extends AbstractObject implements ReceiptResponseItemI
$this->_supplier = $value;
}
+ /**
+ * Устанавливает тип посредника, реализующего товар или услугу
+ * @param string $value Тип посредника
+ */
+ public function setAgentType($value)
+ {
+ if ($value === null || $value === '') {
+ $this->_agentType = null;
+ } elseif (!TypeCast::canCastToEnumString($value)) {
+ throw new InvalidPropertyValueException(
+ 'Invalid value for "agentType" parameter in ReceiptItem.agentType',
+ 0,
+ 'ReceiptItem.agentType',
+ $value
+ );
+ } elseif (!AgentType::valueExists($value)) {
+ throw new InvalidPropertyValueException(
+ 'Invalid value for "agentType" parameter in ReceiptItem.agentType',
+ 0,
+ 'ReceiptItem.agentType',
+ $value
+ );
+ } else {
+ $this->_agentType = $value;
+ }
+ }
+
+ /**
+ * Возвращает тип посредника, реализующего товар или услугу
+ *
+ * @return string Тип посредника
+ */
+ public function getAgentType()
+ {
+ return $this->_agentType;
+ }
+
/**
* Фабричный метод создания суммы
*
diff --git a/lib/Request/Receipts/ReceiptResponseItemInterface.php b/lib/Request/Receipts/ReceiptResponseItemInterface.php
index 4f861a13..e0420843 100644
--- a/lib/Request/Receipts/ReceiptResponseItemInterface.php
+++ b/lib/Request/Receipts/ReceiptResponseItemInterface.php
@@ -27,6 +27,10 @@
namespace YooKassa\Request\Receipts;
use YooKassa\Model\AmountInterface;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
+use YooKassa\Model\Receipt\MarkQuantity;
+use YooKassa\Model\Supplier;
use YooKassa\Model\SupplierInterface;
/**
@@ -34,12 +38,33 @@ use YooKassa\Model\SupplierInterface;
*
* @package YooKassa
*
- * @property-read string $description Название товара (не более 128 символов).
- * @property-read float $quantity Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы.
- * @property-read float $amount Суммарная стоимость товара в копейках/центах
- * @property-read AmountInterface $price Цена товара
- * @property-read int $vatCode Ставка НДС, число 1-6
- * @property-read int $vat_code Ставка НДС, число 1-6
+ * @property-read string $description Наименование товара (тег в 54 ФЗ — 1030)
+ * @property-read float $quantity Количество (тег в 54 ФЗ — 1023)
+ * @property-read float $amount Суммарная стоимость покупаемого товара в копейках/центах
+ * @property-read AmountInterface $price Цена товара (тег в 54 ФЗ — 1079)
+ * @property-read int $vatCode Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property-read int $vat_code Ставка НДС, число 1-6 (тег в 54 ФЗ — 1199)
+ * @property-read string $paymentSubject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property-read string $payment_subject Признак предмета расчета (тег в 54 ФЗ — 1212)
+ * @property-read string $paymentMode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property-read string $payment_mode Признак способа расчета (тег в 54 ФЗ — 1214)
+ * @property-read string $countryOfOriginCode Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property-read string $country_of_origin_code Код страны происхождения товара (тег в 54 ФЗ — 1230)
+ * @property-read string $customsDeclarationNumber Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property-read string $customs_declaration_number Номер таможенной декларации (от 1 до 32 символов). Тег в 54 ФЗ — 1231
+ * @property-read float $excise Сумма акциза товара с учетом копеек (тег в 54 ФЗ — 1229)
+ * @property-read Supplier $supplier Информация о поставщике товара или услуги (тег в 54 ФЗ — 1224)
+ * @property-read string $agentType Тип посредника, реализующего товар или услугу
+ * @property-read string $agent_type Тип посредника, реализующего товар или услугу
+ * @property-read MarkCodeInfo $markCodeInfo Код товара (тег в 54 ФЗ — 1163)
+ * @property-read MarkCodeInfo $mark_code_info Код товара (тег в 54 ФЗ — 1163)
+ * @property-read string $measure Мера количества предмета расчета (тег в 54 ФЗ — 2108)
+ * @property-read string $productCode Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property-read string $product_code Код товара — уникальный номер, который присваивается экземпляру товара при маркировке (тег в 54 ФЗ — 1162)
+ * @property-read string $markMode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property-read string $mark_mode Режим обработки кода маркировки (тег в 54 ФЗ — 2102)
+ * @property-read MarkQuantity $markQuantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
+ * @property-read MarkQuantity $mark_quantity Дробное количество маркированного товара (тег в 54 ФЗ — 1291)
*/
interface ReceiptResponseItemInterface
{
@@ -47,48 +72,101 @@ interface ReceiptResponseItemInterface
* Возвращает название товара
* @return string Название товара (не более 128 символов).
*/
- function getDescription();
+ public function getDescription();
/**
* Возвращает количество товара
* @return float Количество купленного товара
*/
- function getQuantity();
+ public function getQuantity();
/**
* Возвращает общую стоимость покупаемого товара в копейках/центах
* @return float Сумма стоимости покупаемого товара
*/
- function getAmount();
+ public function getAmount();
/**
* Возвращает цену товара
* @return AmountInterface Цена товара
*/
- function getPrice();
+ public function getPrice();
/**
* Возвращает ставку НДС
* @return int|null Ставка НДС, число 1-6, или null, если ставка не задана
*/
- function getVatCode();
+ public function getVatCode();
/**
* Возвращает признак предмета расчета
* @return string|null Признак предмета расчета
*/
- function getPaymentSubject();
+ public function getPaymentSubject();
/**
* Возвращает признак способа расчета
* @return string|null Признак способа расчета
*/
- function getPaymentMode();
+ public function getPaymentMode();
+
+ /**
+ * Возвращает код товара — уникальный номер, который присваивается экземпляру товара при маркировке
+ * @return string|null Код товара
+ */
+ public function getProductCode();
+
+ /**
+ * Возвращает код товара
+ * @return MarkCodeInfo Код товара
+ */
+ public function getMarkCodeInfo();
+
+ /**
+ * Возвращает меру количества предмета расчета
+ * @return string Мера количества предмета расчета
+ */
+ public function getMeasure();
+
+ /**
+ * Возвращает режим обработки кода маркировки
+ * @return string Режим обработки кода маркировки
+ */
+ public function getMarkMode();
+
+ /**
+ * Возвращает дробное количество маркированного товара
+ * @return MarkQuantity Дробное количество маркированного товара
+ */
+ public function getMarkQuantity();
+
+ /**
+ * Возвращает отраслевой реквизит чека
+ * @return IndustryDetails[] Отраслевой реквизит чека
+ */
+ public function getPaymentSubjectIndustryDetails();
+
+ /**
+ * Возвращает код страны происхождения товара по общероссийскому классификатору стран мира
+ * @return string|null Код страны происхождения товара
+ */
+ public function getCountryOfOriginCode();
+
+ /**
+ * Возвращает номер таможенной декларации
+ * @return string|null Номер таможенной декларации (от 1 до 32 символов)
+ */
+ public function getCustomsDeclarationNumber();
+
+ /**
+ * Возвращает сумму акциза товара с учетом копеек
+ * @return float|null Сумма акциза товара с учетом копеек
+ */
+ public function getExcise();
/**
* Возвращает информацию о поставщике товара или услуги
- * @return SupplierInterface
+ * @return SupplierInterface Информация о поставщике товара или услуги
*/
- function getSupplier();
-
+ public function getSupplier();
}
diff --git a/lib/Request/Receipts/RefundReceiptResponse.php b/lib/Request/Receipts/RefundReceiptResponse.php
index c6de6aec..a1f10079 100644
--- a/lib/Request/Receipts/RefundReceiptResponse.php
+++ b/lib/Request/Receipts/RefundReceiptResponse.php
@@ -81,7 +81,7 @@ class RefundReceiptResponse extends AbstractReceiptResponse
$this->_refund_id = null;
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException('Invalid refund_id value type', 0, 'Receipt.refundId');
- } elseif (strlen((string)$value) !== self::LENGTH_REFUND_ID) {
+ } elseif (mb_strlen((string)$value) !== self::LENGTH_REFUND_ID) {
throw new InvalidPropertyValueException(
'Invalid refund_id value: "'.$value.'"', 0, 'Receipt.refundId', $value
);
diff --git a/phpdoc.xml b/phpdoc.xml
index 194eba00..e496d0d3 100644
--- a/phpdoc.xml
+++ b/phpdoc.xml
@@ -9,7 +9,7 @@
-
+
latest
diff --git a/tests/Model/Receipt/AdditionalUserPropsTest.php b/tests/Model/Receipt/AdditionalUserPropsTest.php
new file mode 100644
index 00000000..aeca5547
--- /dev/null
+++ b/tests/Model/Receipt/AdditionalUserPropsTest.php
@@ -0,0 +1,208 @@
+getName());
+ self::assertNull($instance->getValue());
+
+ $instance = self::getInstance($options);
+
+ self::assertEquals($options['value'], $instance->getValue());
+ self::assertEquals($options['name'], $instance->getName());
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetValue($options)
+ {
+ $expected = $options['value'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getValue());
+ self::assertNull($instance->value);
+ $instance->setValue($expected);
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+
+ $instance = self::getInstance();
+ $instance->value = $expected;
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassName
+ */
+ public function testSetInvalidValue($value, $exceptionClassName)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setValue($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassName, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassName
+ */
+ public function testSetterInvalidValue($value, $exceptionClassName)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->value = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassName, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetName($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getName());
+ self::assertNull($instance->name);
+ $instance->setName($options['name']);
+ self::assertEquals($options['name'], $instance->getName());
+ self::assertEquals($options['name'], $instance->name);
+ }
+
+ /**
+ * @dataProvider invalidNameDataProvider
+ * @param string $name
+ * @param string $exceptionClassName
+ */
+ public function testSetInvalidName($name, $exceptionClassName)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setName($name);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassName, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidNameDataProvider
+ * @param string $name
+ * @param string $exceptionClassName
+ */
+ public function testSetterInvalidName($name, $exceptionClassName)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->name = $name;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassName, $e);
+ }
+ }
+
+ public function validArrayDataProvider()
+ {
+ $result = array();
+ foreach (range(1, 10) as $i) {
+ $result[$i][] = array(
+ 'value' => Random::str(1, AdditionalUserProps::VALUE_MAX_LENGTH),
+ 'name' => Random::str(1, AdditionalUserProps::NAME_MAX_LENGTH),
+ );
+ }
+ return $result;
+ }
+
+ public function invalidValueDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(AdditionalUserProps::VALUE_MAX_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidNameDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(AdditionalUserProps::NAME_MAX_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidIncreaseDataProvider()
+ {
+ return array(
+ array(1, null),
+ array(1.01, ''),
+ array(1.00, true),
+ array(0.99, false),
+ array(0.99, array()),
+ array(0.99, new \stdClass()),
+ array(0.99, 'test'),
+ array(0.99, -1.0),
+ array(0.99, -0.99),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testJsonSerialize($options)
+ {
+ $instance = self::getInstance($options);
+ $expected = $options;
+ self::assertEquals($expected, $instance->jsonSerialize());
+ }
+}
diff --git a/tests/Model/Receipt/IndustryDetailsTest.php b/tests/Model/Receipt/IndustryDetailsTest.php
new file mode 100644
index 00000000..98fce022
--- /dev/null
+++ b/tests/Model/Receipt/IndustryDetailsTest.php
@@ -0,0 +1,327 @@
+getFederalId());
+ self::assertNull($instance->getDocumentNumber());
+ self::assertNull($instance->getDocumentDate());
+ self::assertNull($instance->getValue());
+
+ $instance = self::getInstance($options);
+
+ self::assertEquals($options['federal_id'], $instance->getFederalId());
+ self::assertEquals($options['document_number'], $instance->getDocumentNumber());
+ self::assertEquals($options['document_date'], $instance->getDocumentDate()->format(IndustryDetails::DOCUMENT_DATE_FORMAT));
+ self::assertEquals($options['value'], $instance->getValue());
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetValue($options)
+ {
+ $expected = $options['value'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getValue());
+ self::assertNull($instance->value);
+ $instance->setValue($expected);
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+
+ $instance = self::getInstance();
+ $instance->value = $expected;
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidValue($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setValue($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidValue($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->value = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetDocumentNumber($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getDocumentNumber());
+ self::assertNull($instance->document_number);
+ $instance->setDocumentNumber($options['document_number']);
+ self::assertEquals($options['document_number'], $instance->getDocumentNumber());
+ self::assertEquals($options['document_number'], $instance->document_number);
+ }
+
+ /**
+ * @dataProvider invalidDocumentNumberDataProvider
+ * @param string $document_number
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidDocumentNumber($document_number, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setDocumentNumber($document_number);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidDocumentNumberDataProvider
+ * @param string $document_number
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidDocumentNumber($document_number, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->document_number = $document_number;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetFederalId($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getFederalId());
+ self::assertNull($instance->federal_id);
+ $instance->setFederalId($options['federal_id']);
+ self::assertEquals($options['federal_id'], $instance->getFederalId());
+ self::assertEquals($options['federal_id'], $instance->federal_id);
+ }
+
+ /**
+ * @dataProvider invalidFederalIdDataProvider
+ * @param string $federal_id
+ * @param string $exceptionClassFederalId
+ */
+ public function testSetInvalidFederalId($federal_id, $exceptionClassFederalId)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setFederalId($federal_id);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassFederalId, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidFederalIdDataProvider
+ * @param string $federal_id
+ * @param string $exceptionClassFederalId
+ */
+ public function testSetterInvalidFederalId($federal_id, $exceptionClassFederalId)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->federal_id = $federal_id;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassFederalId, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetDocumentDate($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getDocumentDate());
+ self::assertNull($instance->document_date);
+ $instance->setDocumentDate($options['document_date']);
+ self::assertEquals($options['document_date'], $instance->getDocumentDate()->format(IndustryDetails::DOCUMENT_DATE_FORMAT));
+ self::assertEquals($options['document_date'], $instance->document_date->format(IndustryDetails::DOCUMENT_DATE_FORMAT));
+ }
+
+ /**
+ * @dataProvider invalidDocumentDateDataProvider
+ * @param string $document_date
+ * @param string $exceptionClassDocumentDate
+ */
+ public function testSetInvalidDocumentDate($document_date, $exceptionClassDocumentDate)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setDocumentDate($document_date);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentDate, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidDocumentDateDataProvider
+ * @param string $document_date
+ * @param string $exceptionClassDocumentDate
+ */
+ public function testSetterInvalidDocumentDate($document_date, $exceptionClassDocumentDate)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->document_date = $document_date;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentDate, $e);
+ }
+ }
+
+ public function validArrayDataProvider()
+ {
+ $result = array();
+ foreach (range(1, 10) as $i) {
+ $result[$i][] = array(
+ 'federal_id' => Random::str(1, 5),
+ 'document_date' => date(IndustryDetails::DOCUMENT_DATE_FORMAT, Random::int(10000000, 29999999)),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ );
+ }
+ return $result;
+ }
+
+ public function invalidValueDataProvider()
+ {
+ $exceptionValueNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionValueNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionValueNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(IndustryDetails::VALUE_MAX_LENGTH + 1), $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidDocumentNumberDataProvider()
+ {
+ $exceptionDocumentNumberNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionDocumentNumberNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionDocumentNumberNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH + 1), $exceptionDocumentNumberNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionDocumentNumberNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionDocumentNumberNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidFederalIdDataProvider()
+ {
+ $exceptionFederalIdNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionFederalIdNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionFederalIdNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH + 1), $exceptionFederalIdNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionFederalIdNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionFederalIdNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidDocumentDateDataProvider()
+ {
+ $exceptionDocumentDateNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionDocumentDateNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionDocumentDateNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH + 1), $exceptionDocumentDateNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionDocumentDateNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionDocumentDateNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testJsonSerialize($options)
+ {
+ $instance = self::getInstance($options);
+ $expected = $options;
+ self::assertEquals($expected, $instance->jsonSerialize());
+ }
+}
diff --git a/tests/Model/Receipt/MarkCodeInfoTest.php b/tests/Model/Receipt/MarkCodeInfoTest.php
new file mode 100644
index 00000000..c84aaac3
--- /dev/null
+++ b/tests/Model/Receipt/MarkCodeInfoTest.php
@@ -0,0 +1,848 @@
+getMarkCodeRaw());
+ self::assertNull($instance->getUnknown());
+
+ $instance = self::getInstance($options);
+
+ self::assertEquals($options['mark_code_raw'], $instance->getMarkCodeRaw());
+ self::assertEquals($options['unknown'], $instance->getUnknown());
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetMarkCodeRaw($options)
+ {
+ $expected = $options['mark_code_raw'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getMarkCodeRaw());
+ self::assertNull($instance->mark_code_raw);
+ $instance->setMarkCodeRaw($expected);
+ self::assertEquals($expected, $instance->getMarkCodeRaw());
+ self::assertEquals($expected, $instance->mark_code_raw);
+
+ $instance = self::getInstance();
+ $instance->mark_code_raw = $expected;
+ self::assertEquals($expected, $instance->getMarkCodeRaw());
+ self::assertEquals($expected, $instance->mark_code_raw);
+ }
+
+ /**
+ * @dataProvider invalidMarkCodeRawDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidMarkCodeRaw($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setMarkCodeRaw($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidMarkCodeRawDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidMarkCodeRaw($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->mark_code_raw = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidMarkCodeRawDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::int(-100, MarkCodeInfo::MIN_LENGTH - 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetUnknown($options)
+ {
+ $expected = $options['unknown'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getUnknown());
+ self::assertNull($instance->unknown);
+ $instance->setUnknown($expected);
+ self::assertEquals($expected, $instance->getUnknown());
+ self::assertEquals($expected, $instance->unknown);
+
+ $instance = self::getInstance();
+ $instance->unknown = $expected;
+ self::assertEquals($expected, $instance->getUnknown());
+ self::assertEquals($expected, $instance->unknown);
+ }
+
+ /**
+ * @dataProvider invalidUnknownDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidUnknown($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setUnknown($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidUnknownDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidUnknown($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->unknown = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidUnknownDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_UNKNOWN_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetEan8($options)
+ {
+ $expected = $options['ean_8'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getEan8());
+ self::assertNull($instance->ean_8);
+ $instance->setEan8($expected);
+ self::assertEquals($expected, $instance->getEan8());
+ self::assertEquals($expected, $instance->ean_8);
+
+ $instance = self::getInstance();
+ $instance->ean_8 = $expected;
+ self::assertEquals($expected, $instance->getEan8());
+ self::assertEquals($expected, $instance->ean_8);
+ }
+
+ /**
+ * @dataProvider invalidEan8DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidEan8($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setEan8($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidEan8DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidEan8($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->ean_8 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidEan8DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_EAN_8_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetEan13($options)
+ {
+ $expected = $options['ean_13'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getEan13());
+ self::assertNull($instance->ean_13);
+ $instance->setEan13($expected);
+ self::assertEquals($expected, $instance->getEan13());
+ self::assertEquals($expected, $instance->ean_13);
+
+ $instance = self::getInstance();
+ $instance->ean_13 = $expected;
+ self::assertEquals($expected, $instance->getEan13());
+ self::assertEquals($expected, $instance->ean_13);
+ }
+
+ /**
+ * @dataProvider invalidEan13DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidEan13($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setEan13($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidEan13DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidEan13($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->ean_13 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidEan13DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_EAN_13_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetItf14($options)
+ {
+ $expected = $options['itf_14'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getItf14());
+ self::assertNull($instance->itf_14);
+ $instance->setItf14($expected);
+ self::assertEquals($expected, $instance->getItf14());
+ self::assertEquals($expected, $instance->itf_14);
+
+ $instance = self::getInstance();
+ $instance->itf_14 = $expected;
+ self::assertEquals($expected, $instance->getItf14());
+ self::assertEquals($expected, $instance->itf_14);
+ }
+
+ /**
+ * @dataProvider invalidItf14DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidItf14($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setItf14($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidItf14DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidItf14($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->itf_14 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidItf14DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_ITF_14_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetGs10($options)
+ {
+ $expected = $options['gs_10'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getGs10());
+ self::assertNull($instance->gs_10);
+ $instance->setGs10($expected);
+ self::assertEquals($expected, $instance->getGs10());
+ self::assertEquals($expected, $instance->gs_10);
+
+ $instance = self::getInstance();
+ $instance->gs_10 = $expected;
+ self::assertEquals($expected, $instance->getGs10());
+ self::assertEquals($expected, $instance->gs_10);
+ }
+
+ /**
+ * @dataProvider invalidGs10DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidGs10($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setGs10($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidGs10DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidGs10($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->gs_10 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidGs10DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_GS_10_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetGs1m($options)
+ {
+ $expected = $options['gs_1m'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getGs1m());
+ self::assertNull($instance->gs_1m);
+ $instance->setGs1m($expected);
+ self::assertEquals($expected, $instance->getGs1m());
+ self::assertEquals($expected, $instance->gs_1m);
+
+ $instance = self::getInstance();
+ $instance->gs_1m = $expected;
+ self::assertEquals($expected, $instance->getGs1m());
+ self::assertEquals($expected, $instance->gs_1m);
+ }
+
+ /**
+ * @dataProvider invalidGs1mDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidGs1m($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setGs1m($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidGs1mDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidGs1m($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->gs_1m = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidGs1mDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_GS_1M_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetShort($options)
+ {
+ $expected = $options['short'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getShort());
+ self::assertNull($instance->short);
+ $instance->setShort($expected);
+ self::assertEquals($expected, $instance->getShort());
+ self::assertEquals($expected, $instance->short);
+
+ $instance = self::getInstance();
+ $instance->short = $expected;
+ self::assertEquals($expected, $instance->getShort());
+ self::assertEquals($expected, $instance->short);
+ }
+
+ /**
+ * @dataProvider invalidShortDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidShort($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setShort($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidShortDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidShort($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->short = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidShortDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_SHORT_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetFur($options)
+ {
+ $expected = $options['fur'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getFur());
+ self::assertNull($instance->fur);
+ $instance->setFur($expected);
+ self::assertEquals($expected, $instance->getFur());
+ self::assertEquals($expected, $instance->fur);
+
+ $instance = self::getInstance();
+ $instance->fur = $expected;
+ self::assertEquals($expected, $instance->getFur());
+ self::assertEquals($expected, $instance->fur);
+ }
+
+ /**
+ * @dataProvider invalidFurDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidFur($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setFur($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidFurDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidFur($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->fur = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidFurDataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_FUR_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetEgais20($options)
+ {
+ $expected = $options['egais_20'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getEgais20());
+ self::assertNull($instance->egais_20);
+ $instance->setEgais20($expected);
+ self::assertEquals($expected, $instance->getEgais20());
+ self::assertEquals($expected, $instance->egais_20);
+
+ $instance = self::getInstance();
+ $instance->egais_20 = $expected;
+ self::assertEquals($expected, $instance->getEgais20());
+ self::assertEquals($expected, $instance->egais_20);
+ }
+
+ /**
+ * @dataProvider invalidEgais20DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidEgais20($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setEgais20($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidEgais20DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidEgais20($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->egais_20 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidEgais20DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_EGAIS_20_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetEgais30($options)
+ {
+ $expected = $options['egais_30'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getEgais30());
+ self::assertNull($instance->egais_30);
+ $instance->setEgais30($expected);
+ self::assertEquals($expected, $instance->getEgais30());
+ self::assertEquals($expected, $instance->egais_30);
+
+ $instance = self::getInstance();
+ $instance->egais_30 = $expected;
+ self::assertEquals($expected, $instance->getEgais30());
+ self::assertEquals($expected, $instance->egais_30);
+ }
+
+ /**
+ * @dataProvider invalidEgais30DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidEgais30($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setEgais30($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidEgais30DataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidEgais30($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->egais_30 = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ public function invalidEgais30DataProvider()
+ {
+ $exceptionNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str( MarkCodeInfo::MAX_EGAIS_30_LENGTH + 1), $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function validArrayDataProvider()
+ {
+ $result = array();
+ foreach (range(1, 10) as $i) {
+ $result[$i][] = array(
+ 'mark_code_raw' => Random::str(1, 256),
+ 'unknown' => Random::str(1, MarkCodeInfo::MAX_UNKNOWN_LENGTH),
+ 'ean_8' => Random::str(MarkCodeInfo::MAX_EAN_8_LENGTH),
+ 'ean_13' => Random::str(MarkCodeInfo::MAX_EAN_13_LENGTH),
+ 'itf_14' => Random::str(MarkCodeInfo::MAX_ITF_14_LENGTH),
+ 'gs_10' => Random::str(MarkCodeInfo::MAX_GS_10_LENGTH),
+ 'gs_1m' => Random::str(MarkCodeInfo::MAX_GS_1M_LENGTH),
+ 'short' => Random::str(MarkCodeInfo::MAX_SHORT_LENGTH),
+ 'fur' => Random::str(MarkCodeInfo::MAX_FUR_LENGTH),
+ 'egais_20' => Random::str(MarkCodeInfo::MAX_EGAIS_20_LENGTH),
+ 'egais_30' => Random::str(MarkCodeInfo::MAX_EGAIS_30_LENGTH),
+ );
+ }
+ return $result;
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testJsonSerialize($options)
+ {
+ $instance = self::getInstance($options);
+ $expected = $options;
+ self::assertEquals($expected, $instance->jsonSerialize());
+ }
+}
diff --git a/tests/Model/Receipt/MarkQuantityTest.php b/tests/Model/Receipt/MarkQuantityTest.php
new file mode 100644
index 00000000..24c69606
--- /dev/null
+++ b/tests/Model/Receipt/MarkQuantityTest.php
@@ -0,0 +1,193 @@
+getNumerator());
+ self::assertNull($instance->getDenominator());
+
+ $instance = self::getInstance($options);
+
+ self::assertEquals($options['numerator'], $instance->getNumerator());
+ self::assertEquals($options['denominator'], $instance->getDenominator());
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetDenominator($options)
+ {
+ $expected = $options['denominator'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getDenominator());
+ self::assertNull($instance->denominator);
+ $instance->setDenominator($expected);
+ self::assertEquals($expected, $instance->getDenominator());
+ self::assertEquals($expected, $instance->denominator);
+
+ $instance = self::getInstance();
+ $instance->denominator = $expected;
+ self::assertEquals($expected, $instance->getDenominator());
+ self::assertEquals($expected, $instance->denominator);
+ }
+
+ /**
+ * @dataProvider invalidDenominatorDataProvider
+ * @param mixed $denominator
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidDenominator($denominator, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setDenominator($denominator);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidDenominatorDataProvider
+ * @param mixed $denominator
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidDenominator($denominator, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->denominator = $denominator;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetNumerator($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getNumerator());
+ self::assertNull($instance->numerator);
+ $instance->setNumerator($options['numerator']);
+ self::assertEquals($options['numerator'], $instance->getNumerator());
+ self::assertEquals($options['numerator'], $instance->numerator);
+ }
+
+ /**
+ * @dataProvider invalidNumeratorDataProvider
+ * @param string $numerator
+ * @param string $exceptionClassNumerator
+ */
+ public function testSetInvalidNumerator($numerator, $exceptionClassNumerator)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setNumerator($numerator);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassNumerator, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidNumeratorDataProvider
+ * @param string $numerator
+ * @param string $exceptionClassNumerator
+ */
+ public function testSetterInvalidNumerator($numerator, $exceptionClassNumerator)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->numerator = $numerator;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassNumerator, $e);
+ }
+ }
+
+ public function validArrayDataProvider()
+ {
+ $result = array();
+ foreach (range(1, 10) as $i) {
+ $result[$i][] = array(
+ 'numerator' => Random::int(MarkQuantity::MIN_VALUE, 100),
+ 'denominator' => Random::int(MarkQuantity::MIN_VALUE, 100),
+ );
+ }
+ return $result;
+ }
+
+ public function invalidDenominatorDataProvider()
+ {
+ $exceptionDenominatorNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionDenominatorNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionDenominatorNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionDenominatorNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionDenominatorNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::int(-100, MarkQuantity::MIN_VALUE - 1), $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionDenominatorNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionDenominatorNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionDenominatorNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidNumeratorDataProvider()
+ {
+ $exceptionNumeratorNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionNumeratorNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionNumeratorNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionNumeratorNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionNumeratorNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::int(-100, MarkQuantity::MIN_VALUE - 1), $exceptionNumeratorNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionNumeratorNamespace . 'InvalidPropertyValueTypeException'),
+ array(-0.01, $exceptionNumeratorNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionNumeratorNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionNumeratorNamespace . 'InvalidPropertyValueException'),
+ array(0.01, $exceptionNumeratorNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionNumeratorNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionNumeratorNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testJsonSerialize($options)
+ {
+ $instance = self::getInstance($options);
+ $expected = $options;
+ self::assertEquals($expected, $instance->jsonSerialize());
+ }
+}
diff --git a/tests/Model/Receipt/OperationalDetailsTest.php b/tests/Model/Receipt/OperationalDetailsTest.php
new file mode 100644
index 00000000..1f93f846
--- /dev/null
+++ b/tests/Model/Receipt/OperationalDetailsTest.php
@@ -0,0 +1,260 @@
+getOperationId());
+ self::assertNull($instance->getCreatedAt());
+ self::assertNull($instance->getValue());
+
+ $instance = self::getInstance($options);
+
+ self::assertEquals($options['operation_id'], $instance->getOperationId());
+ self::assertEquals($options['created_at'], $instance->getCreatedAt()->format(OperationalDetails::DATE_FORMAT));
+ self::assertEquals($options['value'], $instance->getValue());
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetValue($options)
+ {
+ $expected = $options['value'];
+
+ $instance = self::getInstance();
+ self::assertNull($instance->getValue());
+ self::assertNull($instance->value);
+ $instance->setValue($expected);
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+
+ $instance = self::getInstance();
+ $instance->value = $expected;
+ self::assertEquals($expected, $instance->getValue());
+ self::assertEquals($expected, $instance->value);
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetInvalidValue($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setValue($value);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidValueDataProvider
+ * @param mixed $value
+ * @param string $exceptionClassDocumentNumber
+ */
+ public function testSetterInvalidValue($value, $exceptionClassDocumentNumber)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->value = $value;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassDocumentNumber, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetOperationId($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getOperationId());
+ self::assertNull($instance->operation_id);
+ $instance->setOperationId($options['operation_id']);
+ self::assertEquals($options['operation_id'], $instance->getOperationId());
+ self::assertEquals($options['operation_id'], $instance->operation_id);
+ }
+
+ /**
+ * @dataProvider invalidOperationIdDataProvider
+ * @param string $operation_id
+ * @param string $exceptionClassOperationId
+ */
+ public function testSetInvalidOperationId($operation_id, $exceptionClassOperationId)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setOperationId($operation_id);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassOperationId, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidOperationIdDataProvider
+ * @param string $operation_id
+ * @param string $exceptionClassOperationId
+ */
+ public function testSetterInvalidOperationId($operation_id, $exceptionClassOperationId)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->operation_id = $operation_id;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassOperationId, $e);
+ }
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ * @param array $options
+ */
+ public function testGetSetCreatedAt($options)
+ {
+ $instance = self::getInstance();
+
+ self::assertNull($instance->getCreatedAt());
+ self::assertNull($instance->created_at);
+ $instance->setCreatedAt($options['created_at']);
+ self::assertEquals($options['created_at'], $instance->getCreatedAt()->format(OperationalDetails::DATE_FORMAT));
+ self::assertEquals($options['created_at'], $instance->created_at->format(OperationalDetails::DATE_FORMAT));
+ }
+
+ /**
+ * @dataProvider invalidCreatedAtDataProvider
+ * @param string $created_at
+ * @param string $exceptionClassCreatedAt
+ */
+ public function testSetInvalidCreatedAt($created_at, $exceptionClassCreatedAt)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->setCreatedAt($created_at);
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassCreatedAt, $e);
+ }
+ }
+
+ /**
+ * @dataProvider invalidCreatedAtDataProvider
+ * @param string $created_at
+ * @param string $exceptionClassCreatedAt
+ */
+ public function testSetterInvalidCreatedAt($created_at, $exceptionClassCreatedAt)
+ {
+ $instance = self::getInstance();
+ try {
+ $instance->created_at = $created_at;
+ } catch (\Exception $e) {
+ self::assertInstanceOf($exceptionClassCreatedAt, $e);
+ }
+ }
+
+ public function validArrayDataProvider()
+ {
+ $result = array();
+ foreach (range(1, 10) as $i) {
+ $result[$i][] = array(
+ 'operation_id' => Random::str(1, OperationalDetails::OPERATION_ID_MAX_LENGTH),
+ 'created_at' => date(OperationalDetails::DATE_FORMAT, Random::int(10000000, 29999999)),
+ 'value' => Random::str(1, OperationalDetails::VALUE_MAX_LENGTH),
+ );
+ }
+ return $result;
+ }
+
+ public function invalidValueDataProvider()
+ {
+ $exceptionValueNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionValueNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionValueNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(OperationalDetails::VALUE_MAX_LENGTH + 1), $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(-1, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0.0, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(0.001, $exceptionValueNamespace . 'InvalidPropertyValueException'),
+ array(true, $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionValueNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidOperationIdDataProvider()
+ {
+ $exceptionOperationIdNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionOperationIdNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionOperationIdNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(OperationalDetails::OPERATION_ID_MAX_LENGTH + 1), $exceptionOperationIdNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionOperationIdNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionOperationIdNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ public function invalidCreatedAtDataProvider()
+ {
+ $exceptionCreatedAtNamespace = 'YooKassa\\Common\\Exceptions\\';
+ return array(
+ array(null, $exceptionCreatedAtNamespace . 'EmptyPropertyValueException'),
+ array('', $exceptionCreatedAtNamespace . 'EmptyPropertyValueException'),
+ array(array(), $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(fopen(__FILE__, 'r'), $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(Random::str(1, 20), $exceptionCreatedAtNamespace . 'InvalidPropertyValueException'),
+ array('III', $exceptionCreatedAtNamespace . 'InvalidPropertyValueException'),
+ array(-0.01, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.0, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(0, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(0.01, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(true, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ array(false, $exceptionCreatedAtNamespace . 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validArrayDataProvider
+ *
+ * @param array $options
+ */
+ public function testJsonSerialize($options)
+ {
+ $instance = self::getInstance($options);
+ $expected = $options;
+ self::assertEquals($expected, $instance->jsonSerialize());
+ }
+}
diff --git a/tests/Model/ReceiptItemTest.php b/tests/Model/ReceiptItemTest.php
index bb3b9bf5..0b72997a 100644
--- a/tests/Model/ReceiptItemTest.php
+++ b/tests/Model/ReceiptItemTest.php
@@ -3,15 +3,19 @@
namespace Tests\YooKassa\Model;
use PHPUnit\Framework\TestCase;
-use YooKassa\Common\Exceptions\InvalidPropertyValueTypeException;
+use YooKassa\Helpers\ProductCode;
use YooKassa\Helpers\Random;
use YooKassa\Helpers\StringObject;
use YooKassa\Model\AmountInterface;
use YooKassa\Model\CurrencyCode;
use YooKassa\Model\Receipt\AgentType;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
+use YooKassa\Model\Receipt\MarkQuantity;
use YooKassa\Model\Receipt\PaymentMode;
use YooKassa\Model\Receipt\PaymentSubject;
use YooKassa\Model\Receipt\ReceiptItemAmount;
+use YooKassa\Model\Receipt\ReceiptItemMeasure;
use YooKassa\Model\ReceiptItem;
use YooKassa\Model\Supplier;
@@ -220,7 +224,7 @@ class ReceiptItemTest extends TestCase
}
/**
- * @dataProvider validDataAgent
+ * @dataProvider validDataAgentType
* @param $value
*/
public function testSetAgentType($value)
@@ -231,15 +235,51 @@ class ReceiptItemTest extends TestCase
self::assertSame($value, $instance->getAgentType());
}
- public function validDataAgent()
+ public function validDataAgentType()
{
- $values = array();
+ $values = array(
+ array(null,),
+ );
for ($i = 0; $i < 5; $i++) {
$values[] = array(Random::value(AgentType::getValidValues()));
}
return $values;
}
+ /**
+ * @dataProvider invalidAgentTypeDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidAgentType($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setAgentType($value);
+ }
+
+ /**
+ * @dataProvider invalidAgentTypeDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidAgentType($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->agent_type = $value;
+ }
+
+ public function invalidAgentTypeDataProvider()
+ {
+ return array(
+ array(1, 'InvalidPropertyValueTypeException'),
+ array(Random::str(10), 'InvalidPropertyValueException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
+ }
+
/**
* @dataProvider validDataSupplier
* @param $value
@@ -250,9 +290,44 @@ class ReceiptItemTest extends TestCase
self::assertNull($instance->getSupplier());
$instance->setSupplier($value);
if (is_array($value)) {
- $value = new Supplier($value);
+ self::assertEquals($value, $instance->getSupplier()->toArray());
+ } else {
+ self::assertEquals($value, $instance->getSupplier());
}
- self::assertEquals($value, $instance->getSupplier());
+ }
+
+ /**
+ * @dataProvider invalidSupplierDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidSupplier($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setSupplier($value);
+ }
+
+ /**
+ * @dataProvider invalidSupplierDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidSupplier($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->supplier = $value;
+ }
+
+ public function invalidSupplierDataProvider()
+ {
+ return array(
+ array(1, 'InvalidPropertyValueTypeException'),
+ array(Random::str(10), 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
}
/**
@@ -262,6 +337,7 @@ class ReceiptItemTest extends TestCase
public function validDataSupplier()
{
$validData = array(
+ array(null,),
array(
array(
'name' => Random::str(1, 100),
@@ -498,8 +574,13 @@ class ReceiptItemTest extends TestCase
self::assertNull($instance->getPrice());
self::assertNull($instance->price);
$instance->setPrice($value);
- self::assertSame($value, $instance->getPrice());
- self::assertSame($value, $instance->price);
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getPrice()->toArray());
+ self::assertSame($value, $instance->price->toArray());
+ } else {
+ self::assertSame($value, $instance->getPrice());
+ self::assertSame($value, $instance->price);
+ }
}
/**
@@ -511,22 +592,33 @@ class ReceiptItemTest extends TestCase
{
$instance = $this->getTestInstance();
$instance->price = $value;
- self::assertSame($value, $instance->getPrice());
- self::assertSame($value, $instance->price);
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getPrice()->toArray());
+ self::assertSame($value, $instance->price->toArray());
+ } else {
+ self::assertSame($value, $instance->getPrice());
+ self::assertSame($value, $instance->price);
+ }
}
public function validPriceDataProvider()
{
return array(
+ array(
+ array(
+ 'value' => number_format(Random::float(1, 100), 2, '.', ''),
+ 'currency' => Random::value(CurrencyCode::getValidValues()),
+ ),
+ ),
array(
new ReceiptItemAmount(array(
- 'value' => Random::int(1, 100),
+ 'value' => number_format(Random::float(1, 100), 2, '.', ''),
'currency' => Random::value(CurrencyCode::getValidValues()),
)),
),
array(
new ReceiptItemAmount(
- Random::int(1, 100),
+ number_format(Random::float(1, 100), 2, '.', ''),
Random::value(CurrencyCode::getValidValues())
),
),
@@ -543,10 +635,8 @@ class ReceiptItemTest extends TestCase
*/
public function testSetInvalidPrice($value)
{
- if (class_exists('InvalidPropertyValueTypeException')) {
- self::setExpectedException('InvalidPropertyValueTypeException');
- $this->getTestInstance()->setPrice($value);
- }
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\InvalidPropertyValueTypeException');
+ $this->getTestInstance()->setPrice($value);
}
/**
@@ -556,26 +646,21 @@ class ReceiptItemTest extends TestCase
*/
public function testSetterInvalidPrice($value)
{
- if (class_exists('InvalidPropertyValueTypeException')) {
- self::setExpectedException('InvalidPropertyValueTypeException');
- $this->getTestInstance()->price = $value;
- }
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\InvalidPropertyValueTypeException');
+ $this->getTestInstance()->price = $value;
}
public function invalidPriceDataProvider()
{
- $result = array(
+ return array(
array(null),
array(''),
array(1.0),
array(1),
array(true),
array(false),
- array(array()),
array(new \stdClass()),
);
-
- return $result;
}
/**
@@ -862,8 +947,6 @@ class ReceiptItemTest extends TestCase
);
}
- ////////////////////////////////////////////////////////////////
-
/**
* @dataProvider validProductCodeDataProvider
*
@@ -915,6 +998,7 @@ class ReceiptItemTest extends TestCase
array(null),
array(''),
array(Random::str(2, 96, '0123456789ABCDEF ')),
+ array(new ProductCode('010463003407001221SxMGorvNuq6Wk91fgr92sdfsdfghfgjh')),
);
}
@@ -949,11 +1033,10 @@ class ReceiptItemTest extends TestCase
array(new \stdClass()),
array(array()),
array(Random::str(2, 96, 'GHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+-=`~?><:"\'')),
+ array(Random::str(97, 100, '0123456789ABCDEF ')),
);
}
- ////////////////////////////////////////////////////////////////
-
/**
* @dataProvider validCountryOfOriginCodeDataProvider
*
@@ -1210,4 +1293,525 @@ class ReceiptItemTest extends TestCase
array(new \stdClass()),
);
}
-}
\ No newline at end of file
+
+ /**
+ * @dataProvider validMarkCodeInfoDataProvider
+ *
+ * @param array|MarkCodeInfo $value
+ */
+ public function testGetSetMarkCodeInfo($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getMarkCodeInfo());
+ self::assertNull($instance->mark_code_info);
+ $instance->setMarkCodeInfo($value);
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getMarkCodeInfo()->toArray());
+ self::assertSame($value, $instance->mark_code_info->toArray());
+ } else {
+ self::assertSame($value, $instance->getMarkCodeInfo());
+ self::assertSame($value, $instance->mark_code_info);
+ }
+ }
+
+ /**
+ * @dataProvider validMarkCodeInfoDataProvider
+ *
+ * @param array|MarkCodeInfo $value
+ */
+ public function testSetterMarkCodeInfo($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->mark_code_info = $value;
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getMarkCodeInfo()->toArray());
+ self::assertSame($value, $instance->mark_code_info->toArray());
+ } else {
+ self::assertSame($value, $instance->getMarkCodeInfo());
+ self::assertSame($value, $instance->mark_code_info);
+ }
+ }
+
+ public function validMarkCodeInfoDataProvider()
+ {
+ return array(
+ array(
+ new MarkCodeInfo(array(
+ 'mark_code_raw' => '010460406000590021N4N57RTCBUZTQ\u001d2403054002410161218\u001d1424010191ffd0\u001g92tIAF/YVpU4roQS3M/m4z78yFq0nc/WsSmLeX6QkF/YVWwy5IMYAeiQ91Xa2m/fFSJcOkb2N+uUUtfr4n0mOX0Q==',
+ )),
+ ),
+ array(
+ array(
+ 'mark_code_raw' => '010460406000590021N4N57RTCBUZTQ\u001d2403054002410161218\u001d1424010191ffd0\u001g92tIAF/YVpU4roQS3M/m4z78yFq0nc/WsSmLeX6QkF/YVWwy5IMYAeiQ91Xa2m/fFSJcOkb2N+uUUtfr4n0mOX0Q==',
+ ),
+ ),
+ array(
+ new MarkCodeInfo(),
+ ),
+ array(null,),
+ );
+ }
+
+ /**
+ * @dataProvider invalidMarkCodeInfoDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidMarkCodeInfo($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setMarkCodeInfo($value);
+ }
+
+ /**
+ * @dataProvider invalidMarkCodeInfoDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidMarkCodeInfo($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->mark_code_info = $value;
+ }
+
+ public function invalidMarkCodeInfoDataProvider()
+ {
+ return array(
+ array(1.0, 'InvalidPropertyValueTypeException'),
+ array(1, 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validMarkQuantityDataProvider
+ *
+ * @param array|MarkQuantity $value
+ */
+ public function testGetSetMarkQuantity($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getMarkQuantity());
+ self::assertNull($instance->mark_quantity);
+ $instance->setMarkQuantity($value);
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getMarkQuantity()->toArray());
+ self::assertSame($value, $instance->mark_quantity->toArray());
+ self::assertSame($value, $instance->markQuantity->toArray());
+ } else {
+ self::assertSame($value, $instance->getMarkQuantity());
+ self::assertSame($value, $instance->mark_quantity);
+ self::assertSame($value, $instance->markQuantity);
+ }
+ }
+
+ /**
+ * @dataProvider validMarkQuantityDataProvider
+ *
+ * @param AmountInterface $value
+ */
+ public function testSetterMarkQuantity($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->mark_quantity = $value;
+ if (is_array($value)) {
+ self::assertSame($value, $instance->getMarkQuantity()->toArray());
+ self::assertSame($value, $instance->mark_quantity->toArray());
+ self::assertSame($value, $instance->markQuantity->toArray());
+ } else {
+ self::assertSame($value, $instance->getMarkQuantity());
+ self::assertSame($value, $instance->mark_quantity);
+ self::assertSame($value, $instance->markQuantity);
+ }
+ }
+
+ public function validMarkQuantityDataProvider()
+ {
+ return array(
+ array(
+ new MarkQuantity(array(
+ 'numerator' => 1,
+ 'denominator' => 1,
+ )),
+ ),
+ array(
+ array(
+ 'numerator' => 1,
+ 'denominator' => 10,
+ ),
+ ),
+ array(
+ new MarkQuantity(),
+ ),
+ array(null,),
+ );
+ }
+
+ /**
+ * @dataProvider invalidMarkQuantityDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidMarkQuantity($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setMarkQuantity($value);
+ }
+
+ /**
+ * @dataProvider invalidMarkQuantityDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidMarkQuantity($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->mark_quantity = $value;
+ }
+
+ public function invalidMarkQuantityDataProvider()
+ {
+ return array(
+ array(1.0, 'InvalidPropertyValueTypeException'),
+ array(1, 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validIndustryDetailsDataProvider
+ *
+ * @param array|IndustryDetails $value
+ */
+ public function testGetSetPaymentSubjectIndustryDetails($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getPaymentSubjectIndustryDetails());
+ self::assertNull($instance->payment_subject_industry_details);
+ $instance->setPaymentSubjectIndustryDetails($value);
+
+ if (is_array($value)) {
+ self::assertCount(count($value), $instance->getPaymentSubjectIndustryDetails());
+ self::assertCount(count($value), $instance->payment_subject_industry_details);
+ self::assertCount(count($value), $instance->paymentSubjectIndustryDetails);
+ } else {
+ self::assertSame($value, $instance->getPaymentSubjectIndustryDetails());
+ self::assertSame($value, $instance->payment_subject_industry_details);
+ self::assertSame($value, $instance->paymentSubjectIndustryDetails);
+ }
+ }
+
+ /**
+ * @dataProvider validIndustryDetailsDataProvider
+ *
+ * @param AmountInterface $value
+ */
+ public function testSetterPaymentSubjectIndustryDetails($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->payment_subject_industry_details = $value;
+
+ if (is_array($value)) {
+ self::assertCount(count($value), $instance->getPaymentSubjectIndustryDetails());
+ self::assertCount(count($value), $instance->payment_subject_industry_details);
+ self::assertCount(count($value), $instance->paymentSubjectIndustryDetails);
+ } else {
+ self::assertSame($value, $instance->getPaymentSubjectIndustryDetails());
+ self::assertSame($value, $instance->payment_subject_industry_details);
+ self::assertSame($value, $instance->paymentSubjectIndustryDetails);
+ }
+ }
+
+ public function validIndustryDetailsDataProvider()
+ {
+ return array(
+ array(
+ array(
+ array(
+ 'federal_id' => '001',
+ 'document_date' => date('Y-m-d', Random::int(100000000, 200000000)),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ ),
+ )
+ ),
+ array(
+ array(
+ array(),
+ )
+ ),
+ array(null,),
+ );
+ }
+
+ /**
+ * @dataProvider invalidPaymentSubjectIndustryDetailsDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidPaymentSubjectIndustryDetails($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setPaymentSubjectIndustryDetails($value);
+ }
+
+ /**
+ * @dataProvider invalidPaymentSubjectIndustryDetailsDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidPaymentSubjectIndustryDetails($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->payment_subject_industry_details = $value;
+ }
+
+ public function invalidPaymentSubjectIndustryDetailsDataProvider()
+ {
+ return array(
+ array(1.0, 'InvalidPropertyValueTypeException'),
+ array(1, 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ array(array(new \stdClass()), 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validMeasureDataProvider
+ *
+ * @param string $value
+ */
+ public function testGetSetMeasure($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getMeasure());
+ self::assertNull($instance->measure);
+ $instance->setMeasure($value);
+
+ self::assertSame($value, $instance->getMeasure());
+ self::assertSame($value, $instance->measure);
+ }
+
+ /**
+ * @dataProvider validMeasureDataProvider
+ *
+ * @param string $value
+ */
+ public function testSetterMeasure($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->measure = $value;
+
+ self::assertSame($value, $instance->getMeasure());
+ self::assertSame($value, $instance->measure);
+ }
+
+ public function validMeasureDataProvider()
+ {
+ $test = array(
+ array(null,),
+ );
+
+ for ($i = 0; $i < 5; $i++) {
+ $test[] = array(Random::value(ReceiptItemMeasure::getValidValues()));
+ }
+
+ return $test;
+ }
+
+ /**
+ * @dataProvider invalidMeasureDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidMeasure($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setMeasure($value);
+ }
+
+ /**
+ * @dataProvider invalidMeasureDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidMeasure($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->measure = $value;
+ }
+
+ public function invalidMeasureDataProvider()
+ {
+ return array(
+ array(array(), 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ array(Random::str(10), 'InvalidPropertyValueException'),
+ );
+ }
+
+ /**
+ * @dataProvider validMarkModeDataProvider
+ *
+ * @param string $value
+ */
+ public function testGetSetMarkMode($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getMarkMode());
+ self::assertNull($instance->mark_mode);
+ $instance->setMarkMode($value);
+
+ self::assertSame($value, $instance->getMarkMode());
+ self::assertSame($value, $instance->mark_mode);
+ }
+
+ /**
+ * @dataProvider validMarkModeDataProvider
+ *
+ * @param string $value
+ */
+ public function testSetterMarkMode($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->mark_mode = $value;
+
+ self::assertSame($value, $instance->getMarkMode());
+ self::assertSame($value, $instance->mark_mode);
+ }
+
+ public function validMarkModeDataProvider()
+ {
+ return array(
+ array(null,),
+ array(0,),
+ array(1,),
+ array('1',),
+ );
+ }
+
+ /**
+ * @dataProvider invalidMarkModeDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidMarkMode($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setMarkMode($value);
+ }
+
+ /**
+ * @dataProvider invalidMarkModeDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidMarkMode($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->mark_mode = $value;
+ }
+
+ public function invalidMarkModeDataProvider()
+ {
+ return array(
+ array(array(), 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
+ }
+
+ /**
+ * @dataProvider validAdditionalPaymentSubjectPropsDataProvider
+ *
+ * @param string $value
+ */
+ public function testGetSetAdditionalPaymentSubjectProps($value)
+ {
+ $instance = $this->getTestInstance();
+
+ self::assertNull($instance->getAdditionalPaymentSubjectProps());
+ self::assertNull($instance->additionalPaymentSubjectProps);
+ $instance->setAdditionalPaymentSubjectProps($value);
+
+ self::assertSame($value, $instance->getAdditionalPaymentSubjectProps());
+ self::assertSame($value, $instance->additional_payment_subject_props);
+ self::assertSame($value, $instance->additionalPaymentSubjectProps);
+ }
+
+ /**
+ * @dataProvider validAdditionalPaymentSubjectPropsDataProvider
+ *
+ * @param string $value
+ */
+ public function testSetterAdditionalPaymentSubjectProps($value)
+ {
+ $instance = $this->getTestInstance();
+ $instance->additionalPaymentSubjectProps = $value;
+
+ self::assertSame($value, $instance->getAdditionalPaymentSubjectProps());
+ self::assertSame($value, $instance->additional_payment_subject_props);
+ self::assertSame($value, $instance->additionalPaymentSubjectProps);
+ }
+
+ public function validAdditionalPaymentSubjectPropsDataProvider()
+ {
+ return array(
+ array(null,),
+ array('0',),
+ array(Random::str(1, ReceiptItem::ADD_PROPS_MAX_LENGTH),),
+ );
+ }
+
+ /**
+ * @dataProvider invalidAdditionalPaymentSubjectPropsDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetInvalidAdditionalPaymentSubjectProps($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->setAdditionalPaymentSubjectProps($value);
+ }
+
+ /**
+ * @dataProvider invalidAdditionalPaymentSubjectPropsDataProvider
+ *
+ * @param $value
+ * @param $exception
+ */
+ public function testSetterInvalidAdditionalPaymentSubjectProps($value, $exception)
+ {
+ self::setExpectedException('YooKassa\\Common\\Exceptions\\' . $exception);
+ $this->getTestInstance()->additionalPaymentSubjectProps = $value;
+ }
+
+ public function invalidAdditionalPaymentSubjectPropsDataProvider()
+ {
+ return array(
+ array(array(), 'InvalidPropertyValueTypeException'),
+ array(true, 'InvalidPropertyValueTypeException'),
+ array(new \stdClass(), 'InvalidPropertyValueTypeException'),
+ );
+ }
+}
diff --git a/tests/Request/Payments/CreatePaymentRequestBuilderTest.php b/tests/Request/Payments/CreatePaymentRequestBuilderTest.php
index 0db5cd68..5df6a534 100644
--- a/tests/Request/Payments/CreatePaymentRequestBuilderTest.php
+++ b/tests/Request/Payments/CreatePaymentRequestBuilderTest.php
@@ -14,6 +14,8 @@ use YooKassa\Model\MonetaryAmount;
use YooKassa\Model\Payment;
use YooKassa\Model\PaymentData\PaymentDataQiwi;
use YooKassa\Model\PaymentMethodType;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
use YooKassa\Model\Receipt\PaymentMode;
use YooKassa\Model\Receipt\PaymentSubject;
use YooKassa\Model\ReceiptItem;
@@ -448,6 +450,76 @@ class CreatePaymentRequestBuilderTest extends TestCase
$builder->setTaxSystemCode($value);
}
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ * @throws Exception
+ */
+ public function testSetReceiptIndustryDetails($options)
+ {
+ $builder = new CreatePaymentRequestBuilder();
+
+ $builder->setReceiptItems($options['receiptItems']);
+ $builder->setReceiptEmail($options['receiptEmail']);
+ $builder->setReceiptIndustryDetails($options['receiptIndustryDetails']);
+ $instance = $builder->build($this->getRequiredData());
+
+ if (empty($options['receiptItems'])) {
+ self::assertNull($instance->getReceipt());
+ } else {
+ self::assertNotNull($instance->getReceipt());
+ self::assertEquals($options['receiptIndustryDetails'], $instance->getReceipt()->getReceiptIndustryDetails());
+ }
+ }
+
+ /**
+ * @dataProvider invalidReceiptIndustryDetailsDataProvider
+ * @expectedException InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidReceiptIndustryDetails($value)
+ {
+ $builder = new CreatePaymentRequestBuilder();
+ $builder->setReceiptIndustryDetails($value);
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ * @throws Exception
+ */
+ public function testSetReceiptOperationalDetails($options)
+ {
+ $builder = new CreatePaymentRequestBuilder();
+
+ $builder->setReceiptItems($options['receiptItems']);
+ $builder->setReceiptEmail($options['receiptEmail']);
+ $builder->setReceiptOperationalDetails($options['receiptOperationalDetails']);
+ $instance = $builder->build($this->getRequiredData());
+
+ if (empty($options['receiptItems'])) {
+ self::assertNull($instance->getReceipt());
+ } else {
+ self::assertNotNull($instance->getReceipt());
+ self::assertEquals($options['receiptOperationalDetails'], $instance->getReceipt()->getReceiptOperationalDetails());
+ }
+ }
+
+ /**
+ * @dataProvider invalidReceiptOperationalDetailsDataProvider
+ * @expectedException InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidReceiptOperationalDetails($value)
+ {
+ $builder = new CreatePaymentRequestBuilder();
+ $builder->setReceiptOperationalDetails($value);
+ }
+
/**
* @dataProvider validDataProvider
*
@@ -830,6 +902,8 @@ class CreatePaymentRequestBuilderTest extends TestCase
'receiptEmail' => null,
'receiptPhone' => null,
'taxSystemCode' => null,
+ 'receiptIndustryDetails' => null,
+ 'receiptOperationalDetails' => null,
),
),
array(
@@ -863,6 +937,8 @@ class CreatePaymentRequestBuilderTest extends TestCase
'receiptEmail' => Random::str(10, 32),
'receiptPhone' => '',
'taxSystemCode' => '',
+ 'receiptIndustryDetails' => '',
+ 'receiptOperationalDetails' => '',
),
),
);
@@ -906,6 +982,19 @@ class CreatePaymentRequestBuilderTest extends TestCase
'receiptEmail' => Random::str(10),
'receiptPhone' => Random::str(10, '0123456789'),
'taxSystemCode' => Random::int(1, 6),
+ 'receiptIndustryDetails' => array(
+ array(
+ 'federal_id' => Random::str(1, 255),
+ 'document_date' => date(IndustryDetails::DOCUMENT_DATE_FORMAT),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ ),
+ ),
+ 'receiptOperationalDetails' => array(
+ 'operation_id' => Random::int(0, OperationalDetails::OPERATION_ID_MAX_LENGTH),
+ 'value' => Random::str(1, OperationalDetails::VALUE_MAX_LENGTH),
+ 'created_at' => date(OperationalDetails::DATE_FORMAT),
+ ),
);
$result[] = array($request);
}
@@ -972,6 +1061,34 @@ class CreatePaymentRequestBuilderTest extends TestCase
);
}
+ /**
+ * @return array
+ * @throws Exception
+ */
+ public function invalidReceiptIndustryDetailsDataProvider()
+ {
+ return array(
+ array(new \stdClass()),
+ array(
+ array(
+ new \stdClass(),
+ new \stdClass(),
+ )
+ ),
+ array(true),
+ array(Random::str(1, 100)),
+ );
+ }
+
+ public function invalidReceiptOperationalDetailsDataProvider()
+ {
+ return array(
+ array(new \stdClass()),
+ array(true),
+ array(Random::str(1, 100)),
+ );
+ }
+
/**
* @dataProvider validDataProvider
*
@@ -1025,4 +1142,4 @@ class CreatePaymentRequestBuilderTest extends TestCase
$builder = new CreatePaymentRequestBuilder();
$builder->setAirline($value);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Request/Receipts/AbstractReceiptResponseTest.php b/tests/Request/Receipts/AbstractReceiptResponseTest.php
index acf36d3a..7525020e 100644
--- a/tests/Request/Receipts/AbstractReceiptResponseTest.php
+++ b/tests/Request/Receipts/AbstractReceiptResponseTest.php
@@ -6,6 +6,10 @@ use PHPUnit\Framework\TestCase;
use YooKassa\Helpers\ProductCode;
use YooKassa\Helpers\Random;
use YooKassa\Model\Airline;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
+use YooKassa\Model\Receipt\ReceiptItemMeasure;
use YooKassa\Model\Receipt\SettlementType;
use YooKassa\Model\ReceiptType;
use YooKassa\Request\Receipts\ReceiptResponseInterface;
@@ -84,6 +88,40 @@ abstract class AbstractReceiptResponseTest extends TestCase
}
}
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetReceiptOperationalDetails($options)
+ {
+ $instance = $this->getTestInstance($options);
+ if (empty($options['receipt_operational_details'])) {
+ self::assertNull($instance->getReceiptOperationalDetails());
+ } else {
+ self::assertEquals($options['receipt_operational_details'], $instance->getReceiptOperationalDetails()->toArray());
+ }
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testReceiptIndustryDetails($options)
+ {
+ $instance = $this->getTestInstance($options);
+
+ self::assertCount(count($options['receipt_industry_details']), $instance->getReceiptIndustryDetails());
+
+ foreach ($instance->getReceiptIndustryDetails() as $index => $item) { /** @var IndustryDetails $item */
+ self::assertTrue($item instanceof IndustryDetails);
+ self::assertArrayHasKey($index, $options['receipt_industry_details']);
+ self::assertEquals($options['receipt_industry_details'][$index]['federal_id'], $item->getFederalId());
+ self::assertEquals($options['receipt_industry_details'][$index]['document_date'], $item->getDocumentDate()->format(IndustryDetails::DOCUMENT_DATE_FORMAT));
+ self::assertEquals($options['receipt_industry_details'][$index]['document_number'], $item->getDocumentNumber());
+ self::assertEquals($options['receipt_industry_details'][$index]['value'], $item->getValue());
+ }
+ }
+
/**
* @dataProvider validDataProvider
* @param array $options
@@ -109,7 +147,7 @@ abstract class AbstractReceiptResponseTest extends TestCase
{
$this->valid = true;
$receipts = array();
- for ($i=0; $i < 10; $i++) {
+ for ($i = 0; $i < 10; $i++) {
$receipts[] = $this->generateReceipts($this->type, true);
}
return $receipts;
@@ -119,7 +157,7 @@ abstract class AbstractReceiptResponseTest extends TestCase
{
$this->valid = false;
$receipts = array();
- for ($i=0; $i < 10; $i++) {
+ for ($i = 0; $i < 10; $i++) {
$receipts[] = $this->generateReceipts($this->type, false);
}
return $receipts;
@@ -131,14 +169,14 @@ abstract class AbstractReceiptResponseTest extends TestCase
$return = array();
$count = Random::int(1, 10);
- for ($i=0; $i < $count; $i++) {
+ for ($i = 0; $i < $count; $i++) {
$return[] = $this->generateReceipt($type, $i);
}
return $return;
}
- private function generateReceipt($type, $i)
+ private function generateReceipt($type, $index)
{
$receipt = array(
'id' => Random::str(39),
@@ -152,10 +190,23 @@ abstract class AbstractReceiptResponseTest extends TestCase
'items' => $this->generateItems(),
'settlements' => $this->generateSettlements(),
'tax_system_code' => Random::int(1, 6),
+ 'receipt_industry_details' => array(
+ array(
+ 'federal_id' => Random::str(1, 255),
+ 'document_date' => date(IndustryDetails::DOCUMENT_DATE_FORMAT),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ ),
+ ),
+ 'receipt_operational_details' => array(
+ 'operation_id' => Random::int(0, OperationalDetails::OPERATION_ID_MAX_LENGTH),
+ 'value' => Random::str(1, OperationalDetails::VALUE_MAX_LENGTH),
+ 'created_at' => date(OperationalDetails::DATE_FORMAT),
+ ),
'on_behalf_of' => Random::int(6)
);
- return $this->addSpecificProperties($receipt, $i);
+ return $this->addSpecificProperties($receipt, $index);
}
private function generateItems()
@@ -163,7 +214,7 @@ abstract class AbstractReceiptResponseTest extends TestCase
$return = array();
$count = Random::int(1, 10);
- for ($i=0; $i < $count; $i++) {
+ for ($i = 0; $i < $count; $i++) {
$return[] = $this->generateItem();
}
@@ -172,15 +223,37 @@ abstract class AbstractReceiptResponseTest extends TestCase
private function generateItem()
{
- return array(
+ $item = array(
'description' => Random::str(1, 128),
'amount' => array(
'value' => round(Random::float(1.00, 100.00), 2),
'currency' => 'RUB',
),
'quantity' => round(Random::float(0.001, 99.999), 3),
- 'vat_code' => Random::int(1 ,6),
+ 'measure' => Random::value(ReceiptItemMeasure::getValidValues()),
+ 'vat_code' => Random::int(1, 6),
+ 'country_of_origin_code' => Random::value(array('RU', 'US', 'CN')),
+ 'customs_declaration_number' => Random::str(1, 32),
+ 'mark_code_info' => array(
+ 'mark_code_raw' => '010460406000590021N4N57RTCBUZTQ\u001d2403054002410161218\u001d1424010191ffd0\u001g92tIAF/YVpU4roQS3M/m4z78yFq0nc/WsSmLeX6QkF/YVWwy5IMYAeiQ91Xa2m/fFSJcOkb2N+uUUtfr4n0mOX0Q==',
+ ),
+ 'mark_mode' => 0,
+ 'payment_subject_industry_details' => array(
+ array(
+ 'federal_id' => '001',
+ 'document_date' => date('Y-m-d', Random::int(100000000, 200000000)),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ )
+ ),
);
+ if ($item['measure'] === ReceiptItemMeasure::PIECE) {
+ $item['mark_quantity'] = array(
+ 'numerator' => Random::int(1,100),
+ 'denominator' => 100,
+ );
+ }
+ return $item;
}
private function generateSettlements()
@@ -188,7 +261,7 @@ abstract class AbstractReceiptResponseTest extends TestCase
$return = array();
$count = Random::int(1, 10);
- for ($i=0; $i < $count; $i++) {
+ for ($i = 0; $i < $count; $i++) {
$return[] = $this->generateSettlement();
}
@@ -204,7 +277,7 @@ abstract class AbstractReceiptResponseTest extends TestCase
'currency' => 'RUB',
),
'quantity' => round(Random::float(0.001, 99.999), 3),
- 'vat_code' => Random::int(1 ,6),
+ 'vat_code' => Random::int(1, 6),
);
}
diff --git a/tests/Request/Receipts/CreatePostReceiptRequestBuilderTest.php b/tests/Request/Receipts/CreatePostReceiptRequestBuilderTest.php
index 40288acf..852a2ab7 100644
--- a/tests/Request/Receipts/CreatePostReceiptRequestBuilderTest.php
+++ b/tests/Request/Receipts/CreatePostReceiptRequestBuilderTest.php
@@ -6,6 +6,9 @@ use PHPUnit\Framework\TestCase;
use YooKassa\Helpers\Random;
use YooKassa\Model\CurrencyCode;
use YooKassa\Model\MonetaryAmount;
+use YooKassa\Model\Receipt\AdditionalUserProps;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\OperationalDetails;
use YooKassa\Model\Receipt\PaymentMode;
use YooKassa\Model\Receipt\PaymentSubject;
use YooKassa\Model\Receipt\SettlementType;
@@ -206,6 +209,107 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
$builder->setTaxSystemCode($value);
}
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ * @throws \Exception
+ */
+ public function testSetAdditionalUserProps($options)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $instance = $builder->build($options);
+
+ if (empty($options['additional_user_props'])) {
+ self::assertNull($instance->getAdditionalUserProps());
+ } else {
+ self::assertNotNull($instance->getAdditionalUserProps());
+ if (!is_object($instance->getAdditionalUserProps())) {
+ self::assertEquals($options['additional_user_props'], $instance->getAdditionalUserProps()->toArray());
+ } else {
+ self::assertTrue($instance->getAdditionalUserProps() instanceof AdditionalUserProps);
+ }
+ }
+ }
+
+ /**
+ * @dataProvider invalidAdditionalUserPropsDataProvider
+ * @expectedException \InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidAdditionalProps($value)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $builder->setAdditionalUserProps($value);
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ * @throws \Exception
+ */
+ public function testSetReceiptIndustryDetails($options)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $instance = $builder->build($options);
+
+ if (empty($options['receipt_industry_details'])) {
+ self::assertNull($instance->getReceiptIndustryDetails());
+ } else {
+ self::assertNotNull($instance->getReceiptIndustryDetails());
+ self::assertCount(count($options['receipt_industry_details']), $instance->getReceiptIndustryDetails());
+ }
+ }
+
+ /**
+ * @dataProvider invalidReceiptIndustryDetailsDataProvider
+ * @expectedException \InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidReceiptIndustryDetails($value)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $builder->setReceiptIndustryDetails($value);
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ * @throws \Exception
+ */
+ public function testSetReceiptOperationalDetails($options)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $instance = $builder->build($options);
+
+ if (empty($options['receipt_operational_details'])) {
+ self::assertNull($instance->getReceiptOperationalDetails());
+ } else {
+ self::assertNotNull($instance->getReceiptOperationalDetails());
+ if (!is_object($instance->getReceiptOperationalDetails())) {
+ self::assertEquals($options['receipt_operational_details'], $instance->getReceiptOperationalDetails()->toArray());
+ } else {
+ self::assertTrue($instance->getReceiptOperationalDetails() instanceof OperationalDetails);
+ }
+ }
+ }
+
+ /**
+ * @dataProvider invalidReceiptOperationalDetailsDataProvider
+ * @expectedException \InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidReceiptOperationalDetails($value)
+ {
+ $builder = new CreatePostReceiptRequestBuilder();
+ $builder->setReceiptOperationalDetails($value);
+ }
+
/**
* @dataProvider validDataProvider
* @param $value
@@ -308,6 +412,9 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
)
),
'tax_system_code' => Random::int(1, 6),
+ 'additional_user_props' => null,
+ 'receipt_industry_details' => null,
+ 'receipt_operational_details' => null,
'type' => 'payment',
'send' => true,
'settlements' => array(
@@ -319,7 +426,7 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
)
)
),
- $type . '_id' => uniqid()
+ $type . '_id' => uniqid('', true)
),
),
);
@@ -350,6 +457,23 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
)
),
'tax_system_code' => Random::int(1, 6),
+ 'additional_user_props' => array(
+ 'name' => Random::str(1, AdditionalUserProps::NAME_MAX_LENGTH),
+ 'value' => Random::str(1, AdditionalUserProps::VALUE_MAX_LENGTH),
+ ),
+ 'receipt_industry_details' => array(
+ array(
+ 'federal_id' => Random::str(1, 255),
+ 'document_date' => date(IndustryDetails::DOCUMENT_DATE_FORMAT),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ ),
+ ),
+ 'receipt_operational_details' => array(
+ 'operation_id' => Random::int(0, OperationalDetails::OPERATION_ID_MAX_LENGTH),
+ 'value' => Random::str(1, OperationalDetails::VALUE_MAX_LENGTH),
+ 'created_at' => date(OperationalDetails::DATE_FORMAT),
+ ),
'type' => $type,
'send' => true,
'on_behalf_of' => Random::int(99999, 999999),
@@ -362,7 +486,7 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
)
)
),
- $type . '_id' => uniqid()
+ $type . '_id' => uniqid('', true)
);
$result[] = array($request);
}
@@ -403,7 +527,6 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
);
}
-
public function invalidBooleanDataProvider()
{
return array(
@@ -412,4 +535,56 @@ class CreatePostReceiptRequestBuilderTest extends TestCase
array('test'),
);
}
+
+ public function invalidAdditionalUserPropsDataProvider()
+ {
+ return array(
+ array(new \stdClass()),
+ array('test'),
+ array(array(
+ 'name' => null,
+ 'value' => null,
+ )),
+ array(array(
+ 'name' => Random::str(1, AdditionalUserProps::NAME_MAX_LENGTH),
+ 'value' => null,
+ )),
+ array(array(
+ 'name' => null,
+ 'value' => Random::str(1, AdditionalUserProps::VALUE_MAX_LENGTH),
+ )),
+ array(array(
+ 'name' => Random::str(AdditionalUserProps::NAME_MAX_LENGTH + 1),
+ 'value' => Random::str(1, AdditionalUserProps::VALUE_MAX_LENGTH),
+ )),
+ array(array(
+ 'name' => Random::str(1, AdditionalUserProps::NAME_MAX_LENGTH),
+ 'value' => Random::str(AdditionalUserProps::VALUE_MAX_LENGTH + 1),
+ )),
+ );
+ }
+
+ public function invalidReceiptOperationalDetailsDataProvider()
+ {
+ return array(
+ array(new \stdClass()),
+ array(true),
+ array(Random::str(1, 100)),
+ );
+ }
+
+ public function invalidReceiptIndustryDetailsDataProvider()
+ {
+ return array(
+ array(new \stdClass()),
+ array(
+ array(
+ new \stdClass(),
+ new \stdClass(),
+ )
+ ),
+ array(true),
+ array(Random::str(1, 100)),
+ );
+ }
}
diff --git a/tests/Request/Receipts/ReceiptResponseFactoryTest.php b/tests/Request/Receipts/ReceiptResponseFactoryTest.php
index b9f8f2d4..6015db6c 100644
--- a/tests/Request/Receipts/ReceiptResponseFactoryTest.php
+++ b/tests/Request/Receipts/ReceiptResponseFactoryTest.php
@@ -43,7 +43,8 @@ class ReceiptResponseFactoryTest extends TestCase
),
array(
array(
- 'type' => ReceiptType::REFUND
+ 'type' => ReceiptType::REFUND,
+ 'payment_id' => 1
)
)
);
diff --git a/tests/Request/Receipts/ReceiptResponseItemTest.php b/tests/Request/Receipts/ReceiptResponseItemTest.php
index 45d5f7e1..0c0604eb 100644
--- a/tests/Request/Receipts/ReceiptResponseItemTest.php
+++ b/tests/Request/Receipts/ReceiptResponseItemTest.php
@@ -5,12 +5,17 @@ namespace Tests\YooKassa\Request\Receipts;
use YooKassa\Common\Exceptions\EmptyPropertyValueException;
use YooKassa\Helpers\ProductCode;
use YooKassa\Helpers\Random;
+use YooKassa\Helpers\StringObject;
use YooKassa\Model\Airline;
use YooKassa\Model\AmountInterface;
use YooKassa\Model\CurrencyCode;
use YooKassa\Model\MonetaryAmount;
+use YooKassa\Model\Receipt\AgentType;
+use YooKassa\Model\Receipt\IndustryDetails;
+use YooKassa\Model\Receipt\MarkCodeInfo;
use YooKassa\Model\Receipt\PaymentMode;
use YooKassa\Model\Receipt\PaymentSubject;
+use YooKassa\Model\Receipt\ReceiptItemMeasure;
use YooKassa\Model\Supplier;
use YooKassa\Model\SupplierInterface;
use YooKassa\Request\Receipts\ReceiptResponseItem;
@@ -53,6 +58,24 @@ class ReceiptResponseItemTest extends TestCase
self::assertEquals($options['vat_code'], $instance->getVatCode());
}
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetSetExcise($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ $instance->setExcise(null);
+ self::assertNull($instance->getExcise());
+ if (empty($options['excise'])) {
+ self::assertNull($instance->getExcise());
+ } else {
+ $instance->setExcise($options['excise']);
+ self::assertNotNull($instance->getExcise());
+ self::assertEquals($options['excise'], $instance->getExcise());
+ }
+ }
+
/**
* @dataProvider validDataProvider
* @param array $options
@@ -76,6 +99,67 @@ class ReceiptResponseItemTest extends TestCase
}
}
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetSetMarkCodeInfo($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+
+ if (empty($options['mark_code_info'])) {
+ self::assertNull($instance->getMarkCodeInfo());
+ } else {
+ self::assertNotNull($instance->getMarkCodeInfo());
+ if (!is_object($instance->getMarkCodeInfo())) {
+ self::assertEquals($options['mark_code_info'], $instance->getMarkCodeInfo()->toArray());
+ } else {
+ self::assertTrue($instance->getMarkCodeInfo() instanceof MarkCodeInfo);
+ }
+ }
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetSetMarkMode($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ $instance->setMarkMode(null);
+ self::assertNull($instance->getMarkMode());
+
+ $instance->setMarkMode($options['mark_mode']);
+ if (is_null($options['mark_mode'])) {
+ self::assertNull($instance->getMarkMode());
+ } else {
+ self::assertNotNull($instance->getMarkMode());
+ self::assertEquals($options['mark_mode'], $instance->getMarkMode());
+ }
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetSetMarkQuantity($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ $instance->setMarkQuantity(null);
+ self::assertNull($instance->getMarkQuantity());
+ if (isset($options['mark_quantity'])) {
+ $instance->setMarkQuantity($options['mark_quantity']);
+ if (is_array($options['mark_quantity'])) {
+ self::assertSame($options['mark_quantity'], $instance->getMarkQuantity()->toArray());
+ self::assertSame($options['mark_quantity'], $instance->mark_quantity->toArray());
+ self::assertSame($options['mark_quantity'], $instance->markQuantity->toArray());
+ }else {
+ self::assertNotNull($instance->getMarkQuantity());
+ self::assertEquals($options['mark_quantity'], $instance->getMarkQuantity());
+ }
+ }
+ }
+
/**
* @dataProvider validDataProvider
* @param array $options
@@ -119,6 +203,13 @@ class ReceiptResponseItemTest extends TestCase
self::assertEquals($options['payment_mode'], $instance->getPaymentMode());
}
+ public function testSetPaymentSubjectData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setPaymentSubject(null);
+ self::assertNull($instance->getPaymentSubject());
+ }
+
/**
* @dataProvider validDataProvider
* @param array $options
@@ -129,13 +220,6 @@ class ReceiptResponseItemTest extends TestCase
self::assertEquals($options['payment_subject'], $instance->getPaymentSubject());
}
- public function testSetPaymentSubjectData()
- {
- $instance = new ReceiptResponseItem();
- $instance->setPaymentSubject(null);
- self::assertNull($instance->getPaymentSubject());
- }
-
public function testSetPaymentModeData()
{
$instance = new ReceiptResponseItem();
@@ -143,6 +227,163 @@ class ReceiptResponseItemTest extends TestCase
self::assertNull($instance->getPaymentMode());
}
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetSetMeasure($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ self::assertEquals($options['measure'], $instance->getMeasure());
+ }
+
+ public function testSetMeasureData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setMeasure(null);
+ self::assertNull($instance->getMeasure());
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetCountryOfOriginCode($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ if (!empty($options['country_of_origin_code'])) {
+ self::assertEquals($options['country_of_origin_code'], $instance->getCountryOfOriginCode());
+ } else {
+ self::assertNull($instance->getCountryOfOriginCode());
+ }
+ }
+
+ public function testSetCountryOfOriginCodeData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setCountryOfOriginCode(null);
+ self::assertNull($instance->getCountryOfOriginCode());
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetCustomsDeclarationNumber($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ if (!empty($options['customs_declaration_number'])) {
+ self::assertEquals($options['customs_declaration_number'], $instance->getCustomsDeclarationNumber());
+ } else {
+ self::assertNull($instance->getCustomsDeclarationNumber());
+ }
+ }
+
+ public function testSetCustomsDeclarationNumberData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setCustomsDeclarationNumber(null);
+ self::assertNull($instance->getCustomsDeclarationNumber());
+ }
+
+ /**
+ * @dataProvider invalidCountryOfOriginCodeDataProvider
+ * @param array $options
+ *
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetCountryOfOriginCodeInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setCountryOfOriginCode($options);
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetExcise($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ if (!empty($options['excise'])) {
+ self::assertEquals($options['excise'], $instance->getExcise());
+ } else {
+ self::assertNull($instance->getExcise());
+ }
+ }
+
+ public function testSetExciseData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setExcise(null);
+ self::assertNull($instance->getExcise());
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param $options
+ */
+ public function testGetSetProductCode($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ if (empty($options['product_code'])) {
+ self::assertNull($instance->getProductCode());
+ self::assertNull($instance->productCode);
+ self::assertNull($instance->product_code);
+ } elseif ($options['product_code'] instanceof ProductCode) {
+ self::assertEquals((string)$options['product_code'], $instance->getProductCode());
+ self::assertEquals((string)$options['product_code'], $instance->productCode);
+ self::assertEquals((string)$options['product_code'], $instance->product_code);
+ } else {
+ self::assertEquals($options['product_code'], (string)$instance->getProductCode());
+ self::assertEquals($options['product_code'], (string)$instance->productCode);
+ self::assertEquals($options['product_code'], (string)$instance->product_code);
+ }
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ *
+ * @param array $options
+ */
+ public function testGetSetPaymentSubjectIndustryDetails($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+
+// self::assertNull($instance->getPaymentSubjectIndustryDetails());
+// self::assertNull($instance->payment_subject_industry_details);
+// $instance->setPaymentSubjectIndustryDetails($options);
+
+ if (is_array($options['payment_subject_industry_details'])) {
+ self::assertCount(count($options['payment_subject_industry_details']), $instance->getPaymentSubjectIndustryDetails());
+ self::assertCount(count($options['payment_subject_industry_details']), $instance->payment_subject_industry_details);
+ self::assertCount(count($options['payment_subject_industry_details']), $instance->paymentSubjectIndustryDetails);
+ } else {
+ self::assertSame($options['payment_subject_industry_details'], $instance->getPaymentSubjectIndustryDetails());
+ self::assertSame($options['payment_subject_industry_details'], $instance->payment_subject_industry_details);
+ self::assertSame($options['payment_subject_industry_details'], $instance->paymentSubjectIndustryDetails);
+ }
+ }
+
+ public function testSetAgentTypeData()
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setAgentType(null);
+ self::assertNull($instance->getAgentType());
+ }
+
+ /**
+ * @dataProvider validDataProvider
+ * @param array $options
+ */
+ public function testGetAgentType($options)
+ {
+ $instance = new ReceiptResponseItem($options);
+ self::assertEquals($options['agent_type'], $instance->getAgentType());
+ }
+
/**
* @dataProvider invalidDescriptionDataProvider
* @param $options
@@ -167,6 +408,18 @@ class ReceiptResponseItemTest extends TestCase
$instance->setQuantity($options);
}
+ /**
+ * @dataProvider invalidMeasureDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetMeasureInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setMeasure($options);
+ }
+
/**
* @dataProvider invalidVatCodeDataProvider
* @param $options
@@ -179,6 +432,28 @@ class ReceiptResponseItemTest extends TestCase
$instance->setVatCode($options);
}
+ /**
+ * @dataProvider invalidExciseDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ */
+ public function testSetExciseInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setExcise($options);
+ }
+
+ /**
+ * @dataProvider invalidProductCodeDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ */
+ public function testSetProductCodeInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setProductCode($options);
+ }
+
/**
* @dataProvider invalidPaymentDataProvider
* @param $options
@@ -215,6 +490,78 @@ class ReceiptResponseItemTest extends TestCase
$instance->setSupplier($options);
}
+ /**
+ * @dataProvider invalidAgentTypeDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetAgentTypeInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setAgentType($options);
+ }
+
+ /**
+ * @dataProvider invalidMarkCodeInfoDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetMarkCodeInfoInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setMarkCodeInfo($options);
+ }
+
+ /**
+ * @dataProvider invalidMarkModeDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetMarkModeInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setMarkMode($options);
+ }
+
+ /**
+ * @dataProvider invalidMarkQuantityDataProvider
+ * @param $options
+ * @expectedException \InvalidArgumentException
+ * @expectedException EmptyPropertyValueException
+ */
+ public function testSetMarkQuantityInvalidData($options)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setMarkQuantity($options);
+ }
+
+ /**
+ * @dataProvider invalidCustomsDeclarationNumberDataProvider
+ * @expectedException \InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetInvalidCustomsDeclarationNumber($value)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->customsDeclarationNumber = $value;
+ }
+
+ /**
+ * @dataProvider invalidCustomsDeclarationNumberDataProvider
+ * @expectedException \InvalidArgumentException
+ *
+ * @param $value
+ */
+ public function testSetterInvalidCustomsDeclarationNumber($value)
+ {
+ $instance = new ReceiptResponseItem();
+ $instance->setCustomsDeclarationNumber($value);
+ }
+
public function validDataProvider()
{
$result = array(
@@ -224,13 +571,21 @@ class ReceiptResponseItemTest extends TestCase
'quantity' => Random::float(0.0001, 99.99),
'amount' => new MonetaryAmount(Random::int(1, 1000)),
'vat_code' => Random::int(1,6),
+ 'measure' => null,
+ 'excise' => null,
'payment_mode' => null,
'payment_subject' => null,
+ 'product_code' => null,
+ 'mark_code_info' => null,
+ 'mark_mode' => null,
+ 'mark_quantity' => null,
'supplier' => new Supplier(array(
'name' => Random::str(128),
'phone' => Random::str(4, 12, '1234567890'),
'inn' => '1000000000'
- ))
+ )),
+ 'agent_type' => null,
+ 'payment_subject_industry_details' => null,
)
)
);
@@ -240,20 +595,54 @@ class ReceiptResponseItemTest extends TestCase
array(
'description' => Random::str(128),
'quantity' => Random::float(0.0001, 99.99),
+ 'measure' => Random::value(ReceiptItemMeasure::getValidValues()),
'amount' => array(
'value' => round(Random::float(0.1, 99.99), 2),
'currency' => Random::value(CurrencyCode::getValidValues())
),
'vat_code' => Random::int(1,6),
+ 'excise' => round(Random::float(1.0,10.0), 2),
'payment_mode' => Random::value(PaymentMode::getValidValues()),
'payment_subject' => Random::value(PaymentSubject::getValidValues()),
+ 'product_code' => Random::value(array(
+ null,
+ Random::str(2, 96, '0123456789ABCDEF '),
+ new ProductCode('010463003407001221SxMGorvNuq6Wk91fgr92sdfsdfghfgjh'),
+ )),
+ 'country_of_origin_code' => Random::value(array('RU', 'US', 'CN')),
+ 'customs_declaration_number' => Random::value(array(
+ null,
+ '',
+ Random::str(1),
+ Random::str(2, 31),
+ Random::str(32),
+ )),
+ 'mark_code_info' => array(
+ 'mark_code_raw' => '010460406000590021N4N57RTCBUZTQ\u001d2403054002410161218\u001d1424010191ffd0\u001g92tIAF/YVpU4roQS3M/m4z78yFq0nc/WsSmLeX6QkF/YVWwy5IMYAeiQ91Xa2m/fFSJcOkb2N+uUUtfr4n0mOX0Q==',
+ ),
+ 'mark_mode' => Random::value(array(null, 0, 1, '1',)),
+ 'payment_subject_industry_details' => array(
+ array(
+ 'federal_id' => '001',
+ 'document_date' => date('Y-m-d', Random::int(100000000, 200000000)),
+ 'document_number' => Random::str(1, IndustryDetails::DOCUMENT_NUMBER_MAX_LENGTH),
+ 'value' => Random::str(1, IndustryDetails::VALUE_MAX_LENGTH),
+ )
+ ),
'supplier' => array(
'name' => Random::str(128),
'phone' => Random::str(4, 12, '1234567890'),
'inn' => '1000000000'
- )
+ ),
+ 'agent_type' => Random::value(AgentType::getValidValues()),
)
);
+ if ($test[0]['measure'] === ReceiptItemMeasure::PIECE) {
+ $test[0]['mark_quantity'] = array(
+ 'numerator' => Random::int(1,100),
+ 'denominator' => 100,
+ );
+ }
$result[] = $test;
}
return $result;
@@ -277,6 +666,16 @@ class ReceiptResponseItemTest extends TestCase
);
}
+ public function invalidMeasureDataProvider()
+ {
+ return array(
+ array(array()),
+ array(true),
+ array(new \stdClass()),
+ array(Random::str(10)),
+ );
+ }
+
public function invalidVatCodeDataProvider()
{
return array(
@@ -285,6 +684,28 @@ class ReceiptResponseItemTest extends TestCase
);
}
+ public function invalidExciseDataProvider()
+ {
+ return array(
+ array('test'),
+ array(new Airline()),
+ array(-Random::float(10)),
+ );
+ }
+
+ public function invalidProductCodeDataProvider()
+ {
+ return array(
+ array(new StringObject('')),
+ array(true),
+ array(false),
+ array(new \stdClass()),
+ array(array()),
+ array(Random::str(2, 96, 'GHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+-=`~?><:"\'')),
+ array(Random::str(97, 100, '0123456789ABCDEF ')),
+ );
+ }
+
public function invalidPaymentDataProvider()
{
return array(
@@ -299,4 +720,74 @@ class ReceiptResponseItemTest extends TestCase
array(new Airline())
);
}
+
+ public function invalidCountryOfOriginCodeDataProvider()
+ {
+ return array(
+ array(new Airline()),
+ array(new ProductCode()),
+ array(Random::str(2, 2, '0123456789!@#$%^&*()_+-=')),
+ array(Random::str(3, 10)),
+ );
+ }
+
+ public function invalidAgentTypeDataProvider()
+ {
+ return array(
+ array(new Airline()),
+ array(Random::str(1, 10)),
+ );
+ }
+
+ public function invalidMarkModeDataProvider()
+ {
+ return array(
+ array(array()),
+ array(new Airline()),
+ array(true),
+ );
+ }
+
+ public function invalidMarkQuantityDataProvider()
+ {
+ return array(
+ array(1.0),
+ array(1),
+ array(true),
+ array(new \stdClass()),
+ );
+ }
+
+ public function invalidMarkCodeInfoDataProvider()
+ {
+ return array(
+ array(1.0),
+ array(1),
+ array(true),
+ array(new \stdClass()),
+ array(Random::str(1, 10)),
+ );
+ }
+
+ public function invalidCustomsDeclarationNumberDataProvider()
+ {
+ return array(
+ array(true),
+ array(false),
+ array(new \stdClass()),
+ array(array()),
+ array(Random::str(33, 64)),
+ );
+ }
+
+ public function invalidPaymentSubjectIndustryDetailsDataProvider()
+ {
+ return array(
+ array(1.0),
+ array(1),
+ array(true),
+ array(new \stdClass()),
+ array(array(new \stdClass())),
+ );
+ }
}