# [YooKassa API SDK](../home.md)
# Class: \YooKassa\Request\Receipts\CreatePostReceiptRequest
### Namespace: [\YooKassa\Request\Receipts](../namespaces/yookassa-request-receipts.md)
---
**Summary:**
Класс объекта запроса к API на создание чека.
---
### Examples
Пример использования билдера
```php
try {
$receiptBuilder = \YooKassa\Request\Receipts\CreatePostReceiptRequest::builder();
$receiptBuilder->setType(\YooKassa\Model\Receipt\ReceiptType::PAYMENT)
->setObjectId('24b94598-000f-5000-9000-1b68e7b15f3f', \YooKassa\Model\Receipt\ReceiptType::PAYMENT) // payment_id
->setCustomer([
'email' => 'john.doe@merchant.com',
'phone' => '71111111111',
])
->setItems([
[
'description' => 'Платок Gucci',
'quantity' => '1.00',
'amount' => [
'value' => '3000.00',
'currency' => 'RUB',
],
'vat_code' => 2,
'payment_mode' => 'full_payment',
'payment_subject' => 'commodity',
'agent_type' => 'banking_payment_agent',
'supplier' => [
'name' => 'ООО Поставщик',
'phone' => '79000000000',
'inn' => '6321341814',
],
],
])
->addSettlement([
[
'type' => 'prepayment',
'amount' => [
'value' => 100.00,
'currency' => 'RUB',
],
],
])
->setSend(true)
;
// Создаем объект запроса
$request = $receiptBuilder->build();
// Можно изменить данные, если нужно
$request->setOnBehalfOf('159753');
$request->getitems()->add(new \YooKassa\Model\Receipt\ReceiptItem([
'description' => 'Платок Gucci Новый',
'quantity' => '1.00',
'amount' => [
'value' => '3500.00',
'currency' => 'RUB',
],
'vat_code' => 2,
'payment_mode' => 'full_payment',
'payment_subject' => 'commodity',
'agent_type' => 'banking_payment_agent',
'supplier' => [
'name' => 'ООО Поставщик',
'phone' => '79000000000',
'inn' => '6321341814',
],
]));
$idempotenceKey = uniqid('', true);
$response = $client->createReceipt($request, $idempotenceKey);
} catch (Exception $e) {
$response = $e;
}
var_dump($response);
```
---
### Constants
* No constants found
---
### Properties
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
| public | [$additional_user_props](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_additional_user_props) | | Дополнительный реквизит пользователя. |
| public | [$additionalUserProps](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_additionalUserProps) | | Дополнительный реквизит пользователя. |
| public | [$customer](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_customer) | | Информация о плательщике |
| public | [$internet](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_internet) | | Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. |
| public | [$items](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_items) | | Список товаров в заказе: для [Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/basics) — не более 80 товаров, для [сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics) — не более 100 товаров. |
| public | [$object_id](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_object_id) | | Идентификатор объекта оплаты |
| public | [$object_type](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_object_type) | | Тип объекта: приход "payment" или возврат "refund". |
| public | [$objectId](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_objectId) | | Идентификатор объекта оплаты |
| public | [$objectType](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_objectType) | | Тип объекта: приход "payment" или возврат "refund". |
| public | [$on_behalf_of](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_on_behalf_of) | | Идентификатор магазина в ЮKassa. |
| public | [$onBehalfOf](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_onBehalfOf) | | Идентификатор магазина в ЮKassa. |
| public | [$receipt_industry_details](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_receipt_industry_details) | | Отраслевой реквизит предмета расчета. |
| public | [$receipt_operational_details](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_receipt_operational_details) | | Операционный реквизит чека. |
| public | [$receiptIndustryDetails](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_receiptIndustryDetails) | | Отраслевой реквизит предмета расчета. |
| public | [$receiptOperationalDetails](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_receiptOperationalDetails) | | Операционный реквизит чека. |
| public | [$send](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_send) | | Формирование чека в онлайн-кассе сразу после создания объекта чека. Сейчас можно передать только значение ~`true`. |
| public | [$settlements](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_settlements) | | Список платежей |
| public | [$tax_system_code](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_tax_system_code) | | Система налогообложения магазина (тег в 54 ФЗ — 1055). |
| public | [$taxSystemCode](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_taxSystemCode) | | Система налогообложения магазина (тег в 54 ФЗ — 1055). |
| public | [$timezone](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_timezone) | | Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). |
| public | [$type](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#property_type) | | Тип чека в онлайн-кассе: приход "payment" или возврат "refund". |
---
### 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 | [builder()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_builder) | | Возвращает билдер объектов запросов создания платежа. |
| public | [clearValidationError()](../classes/YooKassa-Common-AbstractRequest.md#method_clearValidationError) | | Очищает статус валидации текущего запроса. |
| public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива. |
| public | [getAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getAdditionalUserProps) | | Возвращает дополнительный реквизит пользователя. |
| public | [getCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getCustomer) | | Возвращает информацию о плательщике. |
| public | [getInternet()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getInternet) | | Возвращает признак проведения платежа в интернете. |
| 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) | | Возвращает код системы налогообложения. |
| public | [getTimezone()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getTimezone) | | Возвращает номер часовой зоны. |
| public | [getType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_getType) | | Возвращает тип чека в онлайн-кассе. |
| public | [getValidator()](../classes/YooKassa-Common-AbstractObject.md#method_getValidator) | | |
| public | [hasCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_hasCustomer) | | Проверяет наличие данных о плательщике. |
| public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации. |
| public | [notEmpty()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_notEmpty) | | Проверяет есть ли в чеке хотя бы одна позиция товаров и оплат |
| 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 | [setAdditionalUserProps()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setAdditionalUserProps) | | Устанавливает дополнительный реквизит пользователя. |
| public | [setCustomer()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setCustomer) | | Устанавливает информацию о плательщике. |
| public | [setInternet()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setInternet) | | Устанавливает признак проведения платежа в интернете. |
| 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) | | Устанавливает код системы налогообложения. |
| public | [setTimezone()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setTimezone) | | Устанавливает номер часовой зоны. |
| public | [setType()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_setType) | | Устанавливает тип чека в онлайн-кассе. |
| public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize(). |
| public | [validate()](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md#method_validate) | | Валидирует текущий запрос, проверяет все ли нужные свойства установлены. |
| protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта. |
| protected | [setValidationError()](../classes/YooKassa-Common-AbstractRequest.md#method_setValidationError) | | Устанавливает ошибку валидации. |
| protected | [validatePropertyValue()](../classes/YooKassa-Common-AbstractObject.md#method_validatePropertyValue) | | |
---
### Details
* File: [lib/Request/Receipts/CreatePostReceiptRequest.php](../../lib/Request/Receipts/CreatePostReceiptRequest.php)
* Package: YooKassa\Request
* Class Hierarchy:
* [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
* [\YooKassa\Common\AbstractRequest](../classes/YooKassa-Common-AbstractRequest.md)
* \YooKassa\Request\Receipts\CreatePostReceiptRequest
* Implements:
* [\YooKassa\Request\Receipts\CreatePostReceiptRequestInterface](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md)
* See Also:
* [](https://yookassa.ru/developers/api)
---
### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| category | | Class |
| author | | cms@yoomoney.ru |
---
## Properties
#### public $additional_user_props : \YooKassa\Model\Receipt\AdditionalUserProps
---
***Description***
Дополнительный реквизит пользователя.
**Type:** AdditionalUserProps
**Details:**
#### public $additionalUserProps : \YooKassa\Model\Receipt\AdditionalUserProps
---
***Description***
Дополнительный реквизит пользователя.
**Type:** AdditionalUserProps
**Details:**
#### public $customer : \YooKassa\Model\Receipt\ReceiptCustomer
---
***Description***
Информация о плательщике
**Type:** ReceiptCustomer
**Details:**
#### public $internet : bool
---
***Description***
Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет.
**Type:** bool
**Details:**
#### public $items : \YooKassa\Model\Receipt\ReceiptItemInterface[]|\YooKassa\Common\ListObjectInterface
---
***Description***
Список товаров в заказе: для [Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/basics) — не более 80 товаров, для [сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics) — не более 100 товаров.
**Type:** ListObjectInterface
**Details:**
#### public $object_id : string
---
***Description***
Идентификатор объекта оплаты
**Type:** string
**Details:**
#### public $object_type : string
---
***Description***
Тип объекта: приход "payment" или возврат "refund".
**Type:** string
**Details:**
#### public $objectId : string
---
***Description***
Идентификатор объекта оплаты
**Type:** string
**Details:**
#### public $objectType : string
---
***Description***
Тип объекта: приход "payment" или возврат "refund".
**Type:** string
**Details:**
#### public $on_behalf_of : string
---
***Description***
Идентификатор магазина в ЮKassa.
**Type:** string
**Details:**
#### public $onBehalfOf : string
---
***Description***
Идентификатор магазина в ЮKassa.
**Type:** string
**Details:**
#### public $receipt_industry_details : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface
---
***Description***
Отраслевой реквизит предмета расчета.
**Type:** ListObjectInterface
**Details:**
#### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails
---
***Description***
Операционный реквизит чека.
**Type:** OperationalDetails
**Details:**
#### public $receiptIndustryDetails : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface
---
***Description***
Отраслевой реквизит предмета расчета.
**Type:** ListObjectInterface
**Details:**
#### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails
---
***Description***
Операционный реквизит чека.
**Type:** OperationalDetails
**Details:**
#### public $send : bool
---
***Description***
Формирование чека в онлайн-кассе сразу после создания объекта чека. Сейчас можно передать только значение ~`true`.
**Type:** bool
**Details:**
#### public $settlements : \YooKassa\Model\Receipt\SettlementInterface[]|\YooKassa\Common\ListObjectInterface
---
***Description***
Список платежей
**Type:** ListObjectInterface
**Details:**
#### public $tax_system_code : int
---
***Description***
Система налогообложения магазина (тег в 54 ФЗ — 1055).
**Type:** int
**Details:**
#### public $taxSystemCode : int
---
***Description***
Система налогообложения магазина (тег в 54 ФЗ — 1055).
**Type:** int
**Details:**
#### public $timezone : int
---
***Description***
Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011).
**Type:** int
**Details:**
#### public $type : string
---
***Description***
Тип чека в онлайн-кассе: приход "payment" или возврат "refund".
**Type:** string
**Details:**
---
## Methods
#### public __construct() : mixed
```php
public __construct(array|null $data = []) : mixed
```
**Summary**
AbstractObject constructor.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR null | 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() : void
```php
public __set(string $propertyName, mixed $value) : void
```
**Summary**
Устанавливает значение свойства.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | propertyName | Имя свойства |
| mixed | value | Значение свойства |
**Returns:** void -
#### public __unset() : void
```php
public __unset(string $propertyName) : void
```
**Summary**
Удаляет свойство.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | propertyName | Имя удаляемого свойства |
**Returns:** void -
#### public builder() : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
```php
Static public builder() : \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder
```
**Summary**
Возвращает билдер объектов запросов создания платежа.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequestBuilder - Инстанс билдера объектов запросов
#### public clearValidationError() : void
```php
public clearValidationError() : void
```
**Summary**
Очищает статус валидации текущего запроса.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractRequest](../classes/YooKassa-Common-AbstractRequest.md)
**Returns:** void -
#### public fromArray() : void
```php
public fromArray(array|\Traversable $sourceArray) : void
```
**Summary**
Устанавливает значения свойств текущего объекта из массива.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR \Traversable | sourceArray | Ассоциативный массив с настройками |
**Returns:** void -
#### public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps|null
```php
public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps|null
```
**Summary**
Возвращает дополнительный реквизит пользователя.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\AdditionalUserProps|null - Дополнительный реквизит пользователя
#### public getCustomer() : \YooKassa\Model\Receipt\ReceiptCustomerInterface|null
```php
public getCustomer() : \YooKassa\Model\Receipt\ReceiptCustomerInterface|null
```
**Summary**
Возвращает информацию о плательщике.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\ReceiptCustomerInterface|null - Информация о плательщике
#### public getInternet() : bool|null
```php
public getInternet() : bool|null
```
**Summary**
Возвращает признак проведения платежа в интернете.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** bool|null - Признак проведения платежа в интернете
#### public getItems() : \YooKassa\Model\Receipt\ReceiptItemInterface[]|\YooKassa\Common\ListObjectInterface
```php
public getItems() : \YooKassa\Model\Receipt\ReceiptItemInterface[]|\YooKassa\Common\ListObjectInterface
```
**Summary**
Возвращает список позиций в текущем чеке.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\ReceiptItemInterface[]|\YooKassa\Common\ListObjectInterface - Список товаров в заказе
#### public getLastValidationError() : string|null
```php
public getLastValidationError() : string|null
```
**Summary**
Возвращает последнюю ошибку валидации.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractRequest](../classes/YooKassa-Common-AbstractRequest.md)
**Returns:** string|null - Последняя произошедшая ошибка валидации
#### public getObjectId() : string|null
```php
public getObjectId() : string|null
```
**Summary**
Возвращает Id объекта чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** string|null - Id объекта чека
#### public getObjectType() : string|null
```php
public getObjectType() : string|null
```
**Summary**
Возвращает тип объекта чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** string|null - Тип объекта чека
#### public getOnBehalfOf() : string|null
```php
public getOnBehalfOf() : string|null
```
**Summary**
Возвращает идентификатор магазина, от имени которого нужно отправить чек.
**Description**
Выдается ЮKassa, отображается в разделе Продавцы личного кабинета (столбец shopId).
Необходимо передавать, если вы используете решение ЮKassa для платформ.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** string|null -
#### public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface
```php
public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface
```
**Summary**
Возвращает отраслевой реквизит чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface - Отраслевой реквизит чека
#### public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails|null
```php
public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails|null
```
**Summary**
Возвращает операционный реквизит чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\OperationalDetails|null - Операционный реквизит чека
#### public getSend() : bool
```php
public getSend() : bool
```
**Summary**
Возвращает признак отложенной отправки чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** bool - Признак отложенной отправки чека
#### public getSettlements() : \YooKassa\Model\Receipt\SettlementInterface[]|\YooKassa\Common\ListObjectInterface
```php
public getSettlements() : \YooKassa\Model\Receipt\SettlementInterface[]|\YooKassa\Common\ListObjectInterface
```
**Summary**
Возвращает массив оплат, обеспечивающих выдачу товара.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** \YooKassa\Model\Receipt\SettlementInterface[]|\YooKassa\Common\ListObjectInterface - Массив оплат, обеспечивающих выдачу товара
#### public getTaxSystemCode() : int|null
```php
public getTaxSystemCode() : int|null
```
**Summary**
Возвращает код системы налогообложения.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** int|null - Код системы налогообложения. Число 1-6.
#### public getTimezone() : int|null
```php
public getTimezone() : int|null
```
**Summary**
Возвращает номер часовой зоны.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** int|null - Номер часовой зоны
#### public getType() : string|null
```php
public getType() : string|null
```
**Summary**
Возвращает тип чека в онлайн-кассе.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** string|null - Тип чека в онлайн-кассе: приход "payment" или возврат "refund"
#### public getValidator() : \YooKassa\Validator\Validator
```php
public getValidator() : \YooKassa\Validator\Validator
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** \YooKassa\Validator\Validator -
#### public hasCustomer() : bool
```php
public hasCustomer() : bool
```
**Summary**
Проверяет наличие данных о плательщике.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** bool -
#### public jsonSerialize() : array
```php
public jsonSerialize() : array
```
**Summary**
Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** array - Ассоциативный массив со свойствами текущего объекта
#### public notEmpty() : bool
```php
public notEmpty() : bool
```
**Summary**
Проверяет есть ли в чеке хотя бы одна позиция товаров и оплат
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** bool - True если чек не пуст, false если в чеке нет ни одной позиции
#### 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() : void
```php
public offsetSet(string $offset, mixed $value) : void
```
**Summary**
Устанавливает значение свойства.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | offset | Имя свойства |
| mixed | value | Значение свойства |
**Returns:** void -
#### public offsetUnset() : void
```php
public offsetUnset(string $offset) : void
```
**Summary**
Удаляет свойство.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | offset | Имя удаляемого свойства |
**Returns:** void -
#### public setAdditionalUserProps() : self
```php
public setAdditionalUserProps(null|\YooKassa\Model\Receipt\AdditionalUserProps|array $additional_user_props = null) : self
```
**Summary**
Устанавливает дополнительный реквизит пользователя.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| null OR \YooKassa\Model\Receipt\AdditionalUserProps OR array | additional_user_props | Дополнительный реквизит пользователя |
**Returns:** self -
#### public setCustomer() : self
```php
public setCustomer(array|\YooKassa\Model\Receipt\ReceiptCustomerInterface $customer = null) : self
```
**Summary**
Устанавливает информацию о плательщике.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR \YooKassa\Model\Receipt\ReceiptCustomerInterface | customer | Информация о плательщике |
**Returns:** self -
#### public setInternet() : self
```php
public setInternet(bool|null $internet = null) : self
```
**Summary**
Устанавливает признак проведения платежа в интернете.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| bool OR null | internet | Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. |
**Returns:** self -
#### public setItems() : self
```php
public setItems(array|\YooKassa\Common\ListObjectInterface $items = null) : self
```
**Summary**
Устанавливает список позиций в чеке.
**Description**
Если до этого в чеке уже были установлены значения, они удаляются и полностью заменяются переданным списком
позиций. Все передаваемые значения в массиве позиций должны быть объектами класса, реализующего интерфейс
ReceiptItemInterface, в противном случае будет выброшено исключение InvalidPropertyValueTypeException.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR \YooKassa\Common\ListObjectInterface | items | Список товаров в заказе: для [Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/basics) — не более 80 товаров, для [сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics) — не более 100 товаров. |
**Returns:** self -
#### public setObjectId() : \YooKassa\Request\Receipts\CreatePostReceiptRequest
```php
public setObjectId(string|null $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequest
```
**Summary**
Устанавливает Id объекта чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string OR null | value | Id объекта чека |
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequest -
#### public setObjectType() : \YooKassa\Request\Receipts\CreatePostReceiptRequest
```php
public setObjectType(string|null $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequest
```
**Summary**
Устанавливает тип объекта чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string OR null | value | Тип объекта чека |
**Returns:** \YooKassa\Request\Receipts\CreatePostReceiptRequest -
#### public setOnBehalfOf() : self
```php
public setOnBehalfOf(string|null $on_behalf_of = null) : self
```
**Summary**
Устанавливает идентификатор магазина, от имени которого нужно отправить чек.
**Description**
Выдается ЮKassa, отображается в разделе Продавцы личного кабинета (столбец shopId).
Необходимо передавать, если вы используете решение ЮKassa для платформ.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string OR null | on_behalf_of | |
**Returns:** self -
#### public setReceiptIndustryDetails() : self
```php
public setReceiptIndustryDetails(null|array|\YooKassa\Common\ListObjectInterface $receipt_industry_details = null) : self
```
**Summary**
Устанавливает отраслевой реквизит чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| null OR array OR \YooKassa\Common\ListObjectInterface | receipt_industry_details | Отраслевой реквизит чека |
**Returns:** self -
#### public setReceiptOperationalDetails() : self
```php
public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails|null $receipt_operational_details = null) : self
```
**Summary**
Устанавливает операционный реквизит чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR \YooKassa\Model\Receipt\OperationalDetails OR null | receipt_operational_details | Операционный реквизит чека |
**Returns:** self -
#### public setSend() : self
```php
public setSend(bool $send = null) : self
```
**Summary**
Устанавливает признак отложенной отправки чека.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| bool | send | Признак отложенной отправки чека |
**Returns:** self -
#### public setSettlements() : self
```php
public setSettlements(array|\YooKassa\Common\ListObjectInterface|null $settlements = null) : self
```
**Summary**
Устанавливает массив оплат, обеспечивающих выдачу товара.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| array OR \YooKassa\Common\ListObjectInterface OR null | settlements | Массив оплат, обеспечивающих выдачу товара |
**Returns:** self -
#### public setTaxSystemCode() : self
```php
public setTaxSystemCode(int|null $tax_system_code = null) : self
```
**Summary**
Устанавливает код системы налогообложения.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| int OR null | tax_system_code | Код системы налогообложения. Число 1-6 |
**Returns:** self -
#### public setTimezone() : self
```php
public setTimezone(int|null $timezone = null) : self
```
**Summary**
Устанавливает номер часовой зоны.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| int OR null | timezone | Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). |
**Returns:** self -
#### public setType() : self
```php
public setType(string|null $type = null) : self
```
**Summary**
Устанавливает тип чека в онлайн-кассе.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string OR null | type | тип чека в онлайн-кассе: приход "payment" или возврат "refund" |
**Returns:** self -
#### public toArray() : array
```php
public toArray() : array
```
**Summary**
Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации
Является алиасом метода AbstractObject::jsonSerialize().
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** array - Ассоциативный массив со свойствами текущего объекта
#### public validate() : bool
```php
public validate() : bool
```
**Summary**
Валидирует текущий запрос, проверяет все ли нужные свойства установлены.
**Details:**
* Inherited From: [\YooKassa\Request\Receipts\CreatePostReceiptRequest](../classes/YooKassa-Request-Receipts-CreatePostReceiptRequest.md)
**Returns:** bool - True если запрос валиден, false если нет
#### protected getUnknownProperties() : array
```php
protected getUnknownProperties() : array
```
**Summary**
Возвращает массив свойств которые не существуют, но были заданы у объекта.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
**Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами
#### protected setValidationError() : void
```php
protected setValidationError(string $value) : void
```
**Summary**
Устанавливает ошибку валидации.
**Details:**
* Inherited From: [\YooKassa\Common\AbstractRequest](../classes/YooKassa-Common-AbstractRequest.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | value | Ошибка, произошедшая при валидации объекта |
**Returns:** void -
#### protected validatePropertyValue() : mixed
```php
protected validatePropertyValue(string $propertyName, mixed $propertyValue) : mixed
```
**Details:**
* Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| string | propertyName | |
| mixed | propertyValue | |
**Returns:** mixed -
---
### Top Namespaces
* [\YooKassa](../namespaces/yookassa.md)
---
### Reports
* [Errors - 0](../reports/errors.md)
* [Markers - 0](../reports/markers.md)
* [Deprecated - 43](../reports/deprecated.md)
---
This document was automatically generated from source code comments on 2026-08-13 using [phpDocumentor](http://www.phpdoc.org/)
© 2026 YooMoney