7.0 KiB
YooKassa API SDK
Interface: ReceiptResponseInterface
Namespace: \YooKassa\Request\Receipts
Summary:
Interface ReceiptInterface
Constants
- No constants found
Methods
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | getId() | Возвращает идентификатор чека в ЮKassa | |
| public | getItems() | Возвращает список товаров в заказ | |
| public | getOnBehalfOf() | Возвращает идентификатор магазин | |
| public | getSettlements() | Возвращает список расчетов | |
| public | getStatus() | Возвращает статус доставки данных для чека в онлайн-кассу | |
| public | getTaxSystemCode() | Возвращает код системы налогообложения | |
| public | getType() | Возвращает тип чека в онлайн-кассе | |
| public | notEmpty() | Проверяет есть ли в чеке хотя бы одна позиция |
Details
- File: lib/Request/Receipts/ReceiptResponseInterface.php
- Package: \YooKassa
Tags
| Tag | Version | Description |
|---|---|---|
| property-read | Идентификатор чека в ЮKassa. | |
| property-read | Тип чека в онлайн-кассе: приход "payment" или возврат "refund". | |
| property-read | Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled"). | |
| property-read | Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled"). | |
| property-read | Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled"). | |
| property-read | Код системы налогообложения. Число 1-6. | |
| property-read | Код системы налогообложения. Число 1-6. | |
| property-read | Список товаров в заказе | |
| property-read | Список товаров в заказе |
Methods
public getId() : string
public getId() : string
Summary
Возвращает идентификатор чека в ЮKassa
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: string - Идентификатор чека в ЮKassa.
public getType() : string
public getType() : string
Summary
Возвращает тип чека в онлайн-кассе
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: string - Тип чека в онлайн-кассе: приход "payment" или возврат "refund".
public getStatus() : mixed
public getStatus() : mixed
Summary
Возвращает статус доставки данных для чека в онлайн-кассу
Description
@return string Статус доставки данных для чека в онлайн-кассу ("pending", "succeeded" или "canceled").
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: mixed -
public getTaxSystemCode() : mixed
public getTaxSystemCode() : mixed
Summary
Возвращает код системы налогообложения
Description
@return int Код системы налогообложения. Число 1-6.
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: mixed -
public getItems() : mixed
public getItems() : mixed
Summary
Возвращает список товаров в заказ
Description
@return ReceiptResponseItemInterface[]
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: mixed -
public getSettlements() : mixed
public getSettlements() : mixed
Summary
Возвращает список расчетов
Description
@return SettlementInterface[]
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: mixed -
public getOnBehalfOf() : string|null
public getOnBehalfOf() : string|null
Summary
Возвращает идентификатор магазин
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: string|null -
public notEmpty() : bool
public notEmpty() : bool
Summary
Проверяет есть ли в чеке хотя бы одна позиция
Details:
- Inherited From: \YooKassa\Request\Receipts\ReceiptResponseInterface
Returns: bool - True если чек не пуст, false если в чеке нет ни одной позиции
Top Namespaces
Reports
This document was automatically generated from source code comments on 2023-04-06 using phpDocumentor
© 2023 YooMoney