Files
yookassa-sdk-php/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md
T
2025-07-01 14:52:30 +03:00

25 KiB

YooKassa API SDK

Interface: CreatePostReceiptRequestInterface

Namespace: \YooKassa\Request\Receipts


Summary:

Interface CreatePostReceiptRequestInterface.


Constants

  • No constants found

Methods

Visibility Name Flag Summary
public getAdditionalUserProps() Возвращает дополнительный реквизит пользователя.
public getCustomer() Возвращает информацию о плательщике.
public getItems() Возвращает список товаров в заказе.
public getObjectId() Возвращает идентификатор объекта, для которого формируется чек.
public getObjectType() Возвращает тип объекта чека.
public getOnBehalfOf() Возвращает идентификатор магазина, от имени которого нужно отправить чек.
public getReceiptIndustryDetails() Возвращает отраслевой реквизит чека.
public getReceiptOperationalDetails() Возвращает операционный реквизит чека.
public getSend() Возвращает признак отложенной отправки чека.
public getSettlements() Возвращает Массив оплат, обеспечивающих выдачу товара.
public getTaxSystemCode() Возвращает код системы налогообложения.
public getType() Возвращает тип чека в онлайн-кассе.
public notEmpty() Проверяет есть ли в чеке хотя бы одна позиция.
public setAdditionalUserProps() Устанавливает дополнительный реквизит пользователя.
public setCustomer() Устанавливает информацию о пользователе.
public setItems() Устанавливает список товаров чека.
public setObjectId() Устанавливает идентификатор объекта, для которого формируется чек.
public setObjectType() Устанавливает тип объекта чека.
public setOnBehalfOf() Устанавливает идентификатор магазина, от имени которого нужно отправить чек.
public setReceiptIndustryDetails() Устанавливает отраслевой реквизит чека.
public setReceiptOperationalDetails() Устанавливает операционный реквизит чека.
public setSend() Устанавливает признак отложенной отправки чека.
public setSettlements() Устанавливает массив оплат, обеспечивающих выдачу товара.
public setTaxSystemCode() Устанавливает код системы налогообложения.
public setType() Устанавливает тип чека в онлайн-кассе.

Details


Tags

Tag Version Description
category Interface
author cms@yoomoney.ru
property Идентификатор объекта ("payment" или "refund), для которого формируется чек
property Идентификатор объекта ("payment" или "refund), для которого формируется чек
property Тип чека в онлайн-кассе: приход "payment" или возврат "refund"
property Признак отложенной отправки чека
property Информация о плательщике
property Код системы налогообложения. Число 1-6
property Код системы налогообложения. Число 1-6
property Дополнительный реквизит пользователя
property Дополнительный реквизит пользователя
property Отраслевой реквизит чека
property Отраслевой реквизит чека
property Операционный реквизит чека
property Операционный реквизит чека
property Список товаров в заказе
property Массив оплат, обеспечивающих выдачу товара

Methods

public getObjectId() : string|null

public getObjectId() : string|null

Summary

Возвращает идентификатор объекта, для которого формируется чек.

Details:

Returns: string|null - Идентификатор объекта

public setObjectId() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setObjectId(string|null $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает идентификатор объекта, для которого формируется чек.

Details:

Parameters:
Type Name Description
string OR null value Идентификатор объекта

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getType() : string|null

public getType() : string|null

Summary

Возвращает тип чека в онлайн-кассе.

Details:

Returns: string|null - Тип чека в онлайн-кассе: приход "payment" или возврат "refund"

public setType() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setType(string $type) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает тип чека в онлайн-кассе.

Details:

Parameters:
Type Name Description
string type Тип чека в онлайн-кассе: приход "payment" или возврат "refund"

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getObjectType() : string|null

public getObjectType() : string|null

Summary

Возвращает тип объекта чека.

Details:

Returns: string|null - Тип объекта чека

public setObjectType() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setObjectType(string|null $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает тип объекта чека.

Details:

Parameters:
Type Name Description
string OR null value Тип объекта чека

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getSend() : bool

public getSend() : bool

Summary

Возвращает признак отложенной отправки чека.

Description

@return bool Признак отложенной отправки чека

Details:

Returns: bool -

public setSend() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setSend(bool $send) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает признак отложенной отправки чека.

Details:

Parameters:
Type Name Description
bool send Признак отложенной отправки чека

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getTaxSystemCode() : int|null

public getTaxSystemCode() : int|null

Summary

Возвращает код системы налогообложения.

Details:

Returns: int|null - Код системы налогообложения. Число 1-6

public setTaxSystemCode() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setTaxSystemCode(int|null $tax_system_code) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает код системы налогообложения.

Details:

Parameters:
Type Name Description
int OR null tax_system_code Код системы налогообложения. Число 1-6

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps|null

public getAdditionalUserProps() : \YooKassa\Model\Receipt\AdditionalUserProps|null

Summary

Возвращает дополнительный реквизит пользователя.

Details:

Returns: \YooKassa\Model\Receipt\AdditionalUserProps|null - Дополнительный реквизит пользователя

public setAdditionalUserProps() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setAdditionalUserProps(\YooKassa\Model\Receipt\AdditionalUserProps|array|null $additional_user_props) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает дополнительный реквизит пользователя.

Details:

Parameters:
Type Name Description
\YooKassa\Model\Receipt\AdditionalUserProps OR array OR null additional_user_props Дополнительный реквизит пользователя

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface

public getReceiptIndustryDetails() : \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface

Summary

Возвращает отраслевой реквизит чека.

Details:

Returns: \YooKassa\Model\Receipt\IndustryDetails[]|\YooKassa\Common\ListObjectInterface - Отраслевой реквизит чека

public setReceiptIndustryDetails() : mixed

public setReceiptIndustryDetails(array|\YooKassa\Common\ListObjectInterface|null $receipt_industry_details) : mixed

Summary

Устанавливает отраслевой реквизит чека.

Details:

Parameters:
Type Name Description
array OR \YooKassa\Common\ListObjectInterface OR null receipt_industry_details Отраслевой реквизит чека

Returns: mixed -

public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails|null

public getReceiptOperationalDetails() : \YooKassa\Model\Receipt\OperationalDetails|null

Summary

Возвращает операционный реквизит чека.

Details:

Returns: \YooKassa\Model\Receipt\OperationalDetails|null - Операционный реквизит чека

public setReceiptOperationalDetails() : mixed

public setReceiptOperationalDetails(array|\YooKassa\Model\Receipt\OperationalDetails|null $receipt_operational_details) : mixed

Summary

Устанавливает операционный реквизит чека.

Details:

Parameters:
Type Name Description
array OR \YooKassa\Model\Receipt\OperationalDetails OR null receipt_operational_details Операционный реквизит чека

Returns: mixed -

public getCustomer() : \YooKassa\Model\Receipt\ReceiptCustomerInterface|null

public getCustomer() : \YooKassa\Model\Receipt\ReceiptCustomerInterface|null

Summary

Возвращает информацию о плательщике.

Details:

Returns: \YooKassa\Model\Receipt\ReceiptCustomerInterface|null - Информация о плательщике

public setCustomer() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setCustomer(\YooKassa\Model\Receipt\ReceiptCustomerInterface|array|null $customer) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает информацию о пользователе.

Details:

Parameters:
Type Name Description
\YooKassa\Model\Receipt\ReceiptCustomerInterface OR array OR null customer Информация о плательщике

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getItems() : ?\YooKassa\Common\ListObjectInterface

public getItems() : ?\YooKassa\Common\ListObjectInterface

Summary

Возвращает список товаров в заказе.

Description

@return ReceiptItemInterface[]|ListObjectInterface|null

Details:

Returns: ?\YooKassa\Common\ListObjectInterface -

public setItems() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setItems(array|\YooKassa\Common\ListObjectInterface|null $items) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает список товаров чека.

Details:

Parameters:
Type Name Description
array OR \YooKassa\Common\ListObjectInterface OR null items Список товаров чека

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getSettlements() : ?\YooKassa\Common\ListObjectInterface

public getSettlements() : ?\YooKassa\Common\ListObjectInterface

Summary

Возвращает Массив оплат, обеспечивающих выдачу товара.

Description

@return SettlementInterface[]|ListObjectInterface|null

Details:

Returns: ?\YooKassa\Common\ListObjectInterface -

public setSettlements() : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

public setSettlements(array|\YooKassa\Common\ListObjectInterface|null $settlements) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Устанавливает массив оплат, обеспечивающих выдачу товара.

Details:

Parameters:
Type Name Description
array OR \YooKassa\Common\ListObjectInterface OR null settlements Массив оплат, обеспечивающих выдачу товара

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getOnBehalfOf() : null|string

public getOnBehalfOf() : null|string

Summary

Возвращает идентификатор магазина, от имени которого нужно отправить чек.

Details:

Returns: null|string - Идентификатор магазина, от имени которого нужно отправить чек

public setOnBehalfOf() : mixed

public setOnBehalfOf(string|null $on_behalf_of) : mixed

Summary

Устанавливает идентификатор магазина, от имени которого нужно отправить чек.

Description

Выдается ЮKassa, отображается в разделе Продавцы личного кабинета (столбец shopId). Необходимо передавать, если вы используете решение ЮKassa для платформ.

Details:

Parameters:
Type Name Description
string OR null on_behalf_of Идентификатор магазина, от имени которого нужно отправить чек

Returns: mixed -

public notEmpty() : bool

public notEmpty() : bool

Summary

Проверяет есть ли в чеке хотя бы одна позиция.

Details:

Returns: bool - True если чек не пуст, false если в чеке нет ни одной позиции


Top Namespaces


Reports


This document was automatically generated from source code comments on 2025-07-01 using phpDocumentor

© 2025 YooMoney