# [YooKassa API SDK](../home.md) # Abstract Class: \YooKassa\Request\Receipts\AbstractReceiptResponse ### Namespace: [\YooKassa\Request\Receipts](../namespaces/yookassa-request-receipts.md) --- **Summary:** Class AbstractReceipt. --- ### Constants | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [LENGTH_RECEIPT_ID](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#constant_LENGTH_RECEIPT_ID) | | Длина идентификатора чека | --- ### Properties | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [$fiscal_attribute](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscal_attribute) | | Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. | | public | [$fiscal_document_number](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscal_document_number) | | Номер фискального документа. | | public | [$fiscal_provider_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscal_provider_id) | | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. | | public | [$fiscal_storage_number](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscal_storage_number) | | Номер фискального накопителя в кассовом аппарате. | | public | [$fiscalAttribute](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalAttribute) | | Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. | | public | [$fiscalDocumentNumber](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_fiscalDocumentNumber) | | Номер фискального документа. | | 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 | [$internet](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_internet) | | Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. | | public | [$items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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-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 | [$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) | | Перечень совершенных расчетов. | | public | [$status](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_status) | | Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled"). | | public | [$tax_system_code](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_tax_system_code) | | Код системы налогообложения. Число 1-6. | | public | [$taxSystemCode](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_taxSystemCode) | | Код системы налогообложения. Число 1-6. | | public | [$timezone](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_timezone) | | Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). | | public | [$type](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property_type) | | Тип чека в онлайн-кассе: приход "payment" или возврат "refund". | | protected | [$_fiscal_attribute](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__fiscal_attribute) | | | | protected | [$_fiscal_document_number](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__fiscal_document_number) | | | | protected | [$_fiscal_provider_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__fiscal_provider_id) | | | | protected | [$_fiscal_storage_number](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__fiscal_storage_number) | | | | protected | [$_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__id) | | | | protected | [$_internet](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__internet) | | Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. | | protected | [$_items](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__items) | | | | protected | [$_object_id](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__object_id) | | | | protected | [$_on_behalf_of](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__on_behalf_of) | | | | protected | [$_receipt_industry_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__receipt_industry_details) | | | | protected | [$_receipt_operational_details](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__receipt_operational_details) | | | | protected | [$_registered_at](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__registered_at) | | | | protected | [$_settlements](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__settlements) | | | | protected | [$_status](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__status) | | | | protected | [$_tax_system_code](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__tax_system_code) | | | | protected | [$_timezone](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__timezone) | | Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). | | protected | [$_type](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#property__type) | | | --- ### 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 | [addItem()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_addItem) | | Добавляет товар в чек. | | public | [addSettlement()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_addSettlement) | | Добавляет оплату в массив. | | public | [fromArray()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_fromArray) | | AbstractReceiptResponse constructor. | | public | [getFiscalAttribute()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getFiscalAttribute) | | Возвращает фискальный признак чека. | | public | [getFiscalDocumentNumber()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getFiscalDocumentNumber) | | Возвращает номер фискального документа. | | public | [getFiscalProviderId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getFiscalProviderId) | | Возвращает идентификатор чека в онлайн-кассе. | | public | [getFiscalStorageNumber()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getFiscalStorageNumber) | | Возвращает номер фискального накопителя в кассовом аппарате. | | public | [getId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getId) | | Возвращает идентификатор чека в ЮKassa. | | public | [getInternet()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getInternet) | | Возвращает признак проведения платежа в интернете. | | public | [getItems()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getItems) | | Возвращает Список товаров в заказе: для [Чеков от Ю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 | [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) | | Возвращает статус доставки данных для чека в онлайн-кассу. | | public | [getTaxSystemCode()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getTaxSystemCode) | | Возвращает код системы налогообложения. | | public | [getTimezone()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getTimezone) | | Возвращает номер часовой зоны. | | public | [getType()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_getType) | | Возвращает тип чека в онлайн-кассе. | | public | [getValidator()](../classes/YooKassa-Common-AbstractObject.md#method_getValidator) | | | | public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации. | | public | [notEmpty()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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 | [setFiscalAttribute()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setFiscalAttribute) | | Устанавливает фискальный признак чека. | | public | [setFiscalDocumentNumber()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setFiscalDocumentNumber) | | Устанавливает номер фискального документа | | public | [setFiscalProviderId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setFiscalProviderId) | | Устанавливает идентификатор чека в онлайн-кассе. | | public | [setFiscalStorageNumber()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setFiscalStorageNumber) | | Устанавливает номер фискального накопителя в кассовом аппарате. | | public | [setId()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setId) | | Устанавливает идентификатор чека. | | public | [setInternet()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setInternet) | | Устанавливает признак проведения платежа в интернете. | | 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) | | Установка свойств, присущих конкретному объекту. | | public | [setStatus()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setStatus) | | Устанавливает состояние регистрации фискального чека. | | public | [setTaxSystemCode()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения. | | public | [setTimezone()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setTimezone) | | Устанавливает номер часовой зоны. | | public | [setType()](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md#method_setType) | | Устанавливает типа чека. | | public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize(). | | protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта. | | protected | [validatePropertyValue()](../classes/YooKassa-Common-AbstractObject.md#method_validatePropertyValue) | | | --- ### Details * File: [lib/Request/Receipts/AbstractReceiptResponse.php](../../lib/Request/Receipts/AbstractReceiptResponse.php) * Package: YooKassa\Request * Class Hierarchy: * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) * \YooKassa\Request\Receipts\AbstractReceiptResponse * Implements: * [\YooKassa\Request\Receipts\ReceiptResponseInterface](../classes/YooKassa-Request-Receipts-ReceiptResponseInterface.md) * See Also: * [](https://yookassa.ru/developers/api) --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | category | | Class | | author | | cms@yoomoney.ru | --- ## Constants ###### LENGTH_RECEIPT_ID Длина идентификатора чека ```php LENGTH_RECEIPT_ID = 39 ``` --- ## Properties #### public $fiscal_attribute : string --- ***Description*** Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. **Type:** string **Details:** #### public $fiscal_document_number : string --- ***Description*** Номер фискального документа. **Type:** string **Details:** #### public $fiscal_provider_id : string --- ***Description*** Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. **Type:** string **Details:** #### public $fiscal_storage_number : string --- ***Description*** Номер фискального накопителя в кассовом аппарате. **Type:** string **Details:** #### public $fiscalAttribute : string --- ***Description*** Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. **Type:** string **Details:** #### public $fiscalDocumentNumber : string --- ***Description*** Номер фискального документа. **Type:** string **Details:** #### public $fiscalProviderId : string --- ***Description*** Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. **Type:** string **Details:** #### public $fiscalStorageNumber : string --- ***Description*** Номер фискального накопителя в кассовом аппарате. **Type:** string **Details:** #### public $id : string --- ***Description*** Идентификатор чека в ЮKassa. **Type:** string **Details:** #### public $internet : bool --- ***Description*** Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. **Type:** bool **Details:** #### public $items : \YooKassa\Common\ListObjectInterface|\YooKassa\Request\Receipts\ReceiptResponseItemInterface[] --- ***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:** ReceiptResponseItemInterface[] **Details:** #### public $object_id : string --- ***Description*** Идентификатор объекта чека. **Type:** string **Details:** #### public $objectId : string --- ***Description*** Идентификатор объекта чека. **Type:** string **Details:** #### public $on_behalf_of : string --- ***Description*** Идентификатор магазина. **Type:** string **Details:** #### public $onBehalfOf : string --- ***Description*** Идентификатор магазина. **Type:** string **Details:** #### public $receipt_industry_details : \YooKassa\Common\ListObjectInterface|\YooKassa\Model\Receipt\IndustryDetails[] --- ***Description*** Отраслевой реквизит чека. **Type:** IndustryDetails[] **Details:** #### public $receipt_operational_details : \YooKassa\Model\Receipt\OperationalDetails --- ***Description*** Операционный реквизит чека. **Type:** OperationalDetails **Details:** #### public $receiptIndustryDetails : \YooKassa\Common\ListObjectInterface|\YooKassa\Model\Receipt\IndustryDetails[] --- ***Description*** Отраслевой реквизит чека. **Type:** IndustryDetails[] **Details:** #### public $receiptOperationalDetails : \YooKassa\Model\Receipt\OperationalDetails --- ***Description*** Операционный реквизит чека. **Type:** OperationalDetails **Details:** #### public $registered_at : \DateTime --- ***Description*** Дата и время формирования чека в фискальном накопителе. **Type:** \DateTime **Details:** #### public $registeredAt : \DateTime --- ***Description*** Дата и время формирования чека в фискальном накопителе. **Type:** \DateTime **Details:** #### public $settlements : \YooKassa\Common\ListObjectInterface|\YooKassa\Model\Receipt\SettlementInterface[] --- ***Description*** Перечень совершенных расчетов. **Type:** SettlementInterface[] **Details:** #### public $status : string --- ***Description*** Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled"). **Type:** string **Details:** #### public $tax_system_code : int --- ***Description*** Код системы налогообложения. Число 1-6. **Type:** int **Details:** #### public $taxSystemCode : int --- ***Description*** Код системы налогообложения. Число 1-6. **Type:** int **Details:** #### public $timezone : int --- ***Description*** Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). **Type:** int **Details:** #### public $type : string --- ***Description*** Тип чека в онлайн-кассе: приход "payment" или возврат "refund". **Type:** string **Details:** #### protected $_fiscal_attribute : ?string --- **Type:** ?string Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. **Details:** #### protected $_fiscal_document_number : ?string --- **Type:** ?string Номер фискального документа. **Details:** #### protected $_fiscal_provider_id : ?string --- **Type:** ?string Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. **Details:** #### protected $_fiscal_storage_number : ?string --- **Type:** ?string Номер фискального накопителя в кассовом аппарате. **Details:** #### protected $_id : ?string --- **Type:** ?string Идентификатор чека в ЮKassa. **Details:** #### protected $_internet : ?bool --- **Summary** Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. ***Description*** Возможные значения: * `true` — оплата прошла онлайн, через интернет (например, на вашем сайте или в приложении); * `false` — оплата прошла оффлайн (например, в торговой точке или при встрече с курьером). По умолчанию `false`.`true`. Если вы принимаете платежи офлайн, передайте в запросе значение `false`. **Type:** ?bool **Details:** #### protected $_items : ?\YooKassa\Common\ListObject --- **Type:** ListObject Список товаров в заказе: для [Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/basics) — не более 80 товаров, для [сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics) — не более 100 товаров **Details:** #### protected $_object_id : ?string --- **Type:** ?string Идентификатор объекта чека **Details:** #### protected $_on_behalf_of : ?string --- **Type:** ?string Идентификатор магазина **Details:** #### protected $_receipt_industry_details : ?\YooKassa\Common\ListObject --- **Type:** ListObject Отраслевой реквизит предмета расчета **Details:** #### protected $_receipt_operational_details : ?\YooKassa\Model\Receipt\OperationalDetails --- **Type:** OperationalDetails Операционный реквизит чека **Details:** #### protected $_registered_at : ?\DateTime --- **Type:** DateTime Дата и время формирования чека в фискальном накопителе. Указывается в формате [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). **Details:** #### protected $_settlements : ?\YooKassa\Common\ListObject --- **Type:** ListObject Список оплат **Details:** #### protected $_status : ?string --- **Type:** ?string Статус доставки данных для чека в онлайн-кассу "pending", "succeeded" или "canceled". **Details:** #### protected $_tax_system_code : ?int --- **Type:** ?int Код системы налогообложения. Число 1-6. **Details:** #### protected $_timezone : ?int --- **Summary** Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). ***Description*** Указывается, только если в чеке есть товары, которые подлежат обязательной маркировке (в `items.mark_code_info` передается параметр `gs_1m`, `short` или `fur`). Перечень возможных значений: * [для Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/parameters-values#timezone) * [для сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/parameters-values#timezone) **Type:** ?int **Details:** #### protected $_type : ?string --- **Type:** ?string Тип чека в онлайн-кассе: приход "payment" или возврат "refund". **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 addItem() : void ```php public addItem(\YooKassa\Request\Receipts\ReceiptResponseItemInterface $value) : void ``` **Summary** Добавляет товар в чек. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Request\Receipts\ReceiptResponseItemInterface | value | Объект добавляемой в чек позиции | **Returns:** void - #### public addSettlement() : void ```php public addSettlement(\YooKassa\Model\Receipt\SettlementInterface $value) : void ``` **Summary** Добавляет оплату в массив. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Receipt\SettlementInterface | value | | **Returns:** void - #### public fromArray() : void ```php public fromArray(mixed $sourceArray) : void ``` **Summary** AbstractReceiptResponse constructor. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | mixed | sourceArray | | ##### Throws: | Type | Description | | ---- | ----------- | | \Exception | | **Returns:** void - #### public getFiscalAttribute() : string|null ```php public getFiscalAttribute() : string|null ``` **Summary** Возвращает фискальный признак чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Фискальный признак чека #### public getFiscalDocumentNumber() : string|null ```php public getFiscalDocumentNumber() : string|null ``` **Summary** Возвращает номер фискального документа. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Номер фискального документа #### public getFiscalProviderId() : string|null ```php public getFiscalProviderId() : string|null ``` **Summary** Возвращает идентификатор чека в онлайн-кассе. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Идентификатор чека в онлайн-кассе #### public getFiscalStorageNumber() : string|null ```php public getFiscalStorageNumber() : string|null ``` **Summary** Возвращает номер фискального накопителя в кассовом аппарате. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Номер фискального накопителя в кассовом аппарате #### public getId() : string|null ```php public getId() : string|null ``` **Summary** Возвращает идентификатор чека в ЮKassa. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Идентификатор чека в ЮKassa #### public getInternet() : bool|null ```php public getInternet() : bool|null ``` **Summary** Возвращает признак проведения платежа в интернете. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** bool|null - Признак проведения платежа в интернете #### public getItems() : \YooKassa\Request\Receipts\ReceiptResponseItemInterface[]|\YooKassa\Common\ListObjectInterface ```php public getItems() : \YooKassa\Request\Receipts\ReceiptResponseItemInterface[]|\YooKassa\Common\ListObjectInterface ``` **Summary** Возвращает Список товаров в заказе: для [Чеков от ЮKassa](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/yoomoney/basics) — не более 80 товаров, для [сторонних онлайн-касс](https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics) — не более 100 товаров. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** \YooKassa\Request\Receipts\ReceiptResponseItemInterface[]|\YooKassa\Common\ListObjectInterface - #### public getObjectId() : string|null ```php public getObjectId() : string|null ``` **Summary** Возвращает идентификатор платежа или возврата, для которого был сформирован чек. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - #### public getOnBehalfOf() : string|null ```php public getOnBehalfOf() : string|null ``` **Summary** Возвращает идентификатор магазин **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** \YooKassa\Model\Receipt\OperationalDetails|null - Операционный реквизит чека #### public getRegisteredAt() : \DateTime|null ```php public getRegisteredAt() : \DateTime|null ``` **Summary** Возвращает дату и время формирования чека в фискальном накопителе. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** \DateTime|null - Дата и время формирования чека в фискальном накопителе #### 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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** \YooKassa\Model\Receipt\SettlementInterface[]|\YooKassa\Common\ListObjectInterface - #### public getStatus() : string|null ```php public getStatus() : string|null ``` **Summary** Возвращает статус доставки данных для чека в онлайн-кассу. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** string|null - Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled") #### public getTaxSystemCode() : int|null ```php public getTaxSystemCode() : int|null ``` **Summary** Возвращает код системы налогообложения. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** int|null - Код системы налогообложения. Число 1-6. #### public getTimezone() : int|null ```php public getTimezone() : int|null ``` **Summary** Возвращает номер часовой зоны. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) **Returns:** int|null - Номер часовой зоны #### public getType() : string|null ```php public getType() : string|null ``` **Summary** Возвращает тип чека в онлайн-кассе. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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 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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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 setFiscalAttribute() : self ```php public setFiscalAttribute(string|null $fiscal_attribute = null) : self ``` **Summary** Устанавливает фискальный признак чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | fiscal_attribute | Фискальный признак чека. Формируется фискальным накопителем на основе данных, переданных для регистрации чека. | **Returns:** self - #### public setFiscalDocumentNumber() : self ```php public setFiscalDocumentNumber(string|null $fiscal_document_number = null) : self ``` **Summary** Устанавливает номер фискального документа **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | fiscal_document_number | Номер фискального документа. | **Returns:** self - #### public setFiscalProviderId() : self ```php public setFiscalProviderId(string|null $fiscal_provider_id = null) : self ``` **Summary** Устанавливает идентификатор чека в онлайн-кассе. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | fiscal_provider_id | Идентификатор чека в онлайн-кассе. Присутствует, если чек удалось зарегистрировать. | **Returns:** self - #### public setFiscalStorageNumber() : self ```php public setFiscalStorageNumber(string|null $fiscal_storage_number = null) : self ``` **Summary** Устанавливает номер фискального накопителя в кассовом аппарате. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | fiscal_storage_number | Номер фискального накопителя в кассовом аппарате. | **Returns:** self - #### public setId() : self ```php public setId(string $id) : self ``` **Summary** Устанавливает идентификатор чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | id | Идентификатор чека | **Returns:** self - #### public setInternet() : self ```php public setInternet(bool|null $internet = null) : self ``` **Summary** Устанавливает признак проведения платежа в интернете. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool OR null | internet | Признак проведения платежа в интернете (тег в 54 ФЗ — 1125) — указывает на оплату через интернет. | **Returns:** self - #### public setItems() : self ```php public setItems(\YooKassa\Request\Receipts\ReceiptResponseItemInterface[]|null $items) : self ``` **Summary** Устанавливает список позиций в чеке. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Request\Receipts\ReceiptResponseItemInterface[] OR null | 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() : self ```php public setObjectId(string|null $object_id) : self ``` **Summary** Устанавливает идентификатор платежа или возврата, для которого был сформирован чек. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | object_id | | **Returns:** self - #### public setOnBehalfOf() : self ```php public setOnBehalfOf(string|null $on_behalf_of = null) : self ``` **Summary** Возвращает идентификатор магазина, от имени которого нужно отправить чек. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | on_behalf_of | Идентификатор магазина, от имени которого нужно отправить чек | **Returns:** self - #### public setReceiptIndustryDetails() : self ```php public setReceiptIndustryDetails(array|\YooKassa\Model\Receipt\IndustryDetails[]|null $receipt_industry_details = null) : self ``` **Summary** Устанавливает отраслевой реквизит чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \YooKassa\Model\Receipt\IndustryDetails[] OR null | 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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \YooKassa\Model\Receipt\OperationalDetails OR null | receipt_operational_details | Операционный реквизит чека | **Returns:** self - #### public setRegisteredAt() : self ```php public setRegisteredAt(\DateTime|string|null $registered_at = null) : self ``` **Summary** Устанавливает дату и время формирования чека в фискальном накопителе. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \DateTime OR string OR null | registered_at | Дата и время формирования чека в фискальном накопителе. Указывается в формате [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). | **Returns:** self - #### public setSettlements() : self ```php public setSettlements(\YooKassa\Model\Receipt\SettlementInterface[]|null $settlements) : self ``` **Summary** Устанавливает массив оплат, обеспечивающих выдачу товара. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Receipt\SettlementInterface[] OR null | settlements | | **Returns:** self - #### public setSpecificProperties() : void ```php Abstract public setSpecificProperties(array $receiptData) : void ``` **Summary** Установка свойств, присущих конкретному объекту. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array | receiptData | | **Returns:** void - #### public setStatus() : self ```php public setStatus(string|null $status) : self ``` **Summary** Устанавливает состояние регистрации фискального чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | status | Состояние регистрации фискального чека | **Returns:** self - #### public setTaxSystemCode() : self ```php public setTaxSystemCode(int|null $tax_system_code) : self ``` **Summary** Устанавливает код системы налогообложения. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.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\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | int OR null | timezone | Номер часовой зоны для адреса, по которому вы принимаете платежи (тег в 54 ФЗ — 1011). | **Returns:** self - #### public setType() : self ```php public setType(string $type) : self ``` **Summary** Устанавливает типа чека. **Details:** * Inherited From: [\YooKassa\Request\Receipts\AbstractReceiptResponse](../classes/YooKassa-Request-Receipts-AbstractReceiptResponse.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | type | Тип чека | **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 - Ассоциативный массив со свойствами текущего объекта #### protected getUnknownProperties() : array ```php protected getUnknownProperties() : array ``` **Summary** Возвращает массив свойств которые не существуют, но были заданы у объекта. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) **Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами #### 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