Files
yookassa-sdk-php/docs/classes/YooKassa-Request-Receipts-CreatePostReceiptRequestInterface.md
T

18 KiB
Raw Blame History

YooKassa API SDK

Interface: CreatePostReceiptRequestInterface

Namespace: \YooKassa\Request\Receipts


Summary:

Interface CreateReceiptRequestInterface


Constants

  • No constants found

Methods

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

Details


Tags

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

Methods

public getObjectId() : string

public getObjectId() : string

Summary

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

Details:

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

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

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

Summary

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

Details:

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

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getType() : string

public getType() : string

Summary

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

Details:

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

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

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

Summary

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

Details:

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

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getSend() : mixed

public getSend() : mixed

Summary

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

Description

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

Details:

Returns: mixed -

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

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

Summary

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

Details:

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

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getTaxSystemCode() : mixed

public getTaxSystemCode() : mixed

Summary

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

Description

@return int Код системы налогообложения. Число 1-6

Details:

Returns: mixed -

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

public setTaxSystemCode(int $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

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

Details:

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

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface

public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface

Summary

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

Details:

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

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

public setCustomer(\YooKassa\Model\ReceiptCustomerInterface $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

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

Details:

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

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getItems() : mixed

public getItems() : mixed

Summary

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

Description

@return ReceiptItemInterface[]

Details:

Returns: mixed -

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

public setItems(\YooKassa\Model\ReceiptItemInterface[]|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

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

Details:

Parameters:
Type Name Description
\YooKassa\Model\ReceiptItemInterface[] OR array value Список товаров чека

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

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

public addItem(\YooKassa\Model\ReceiptItemInterface|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

Добавляет товар в чек

Details:

Parameters:
Type Name Description
\YooKassa\Model\ReceiptItemInterface OR array value Информация о товаре

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getSettlements() : mixed

public getSettlements() : mixed

Summary

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

Description

@return SettlementInterface[]

Details:

Returns: mixed -

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

public setSettlements(\YooKassa\Model\SettlementInterface[]|array $value) : \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface

Summary

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

Details:

Parameters:
Type Name Description
\YooKassa\Model\SettlementInterface[] OR array value Массив оплат, обеспечивающих выдачу товара

Returns: \YooKassa\Request\Receipts\CreatePostReceiptRequestInterface -

public getOnBehalfOf() : string|null

public getOnBehalfOf() : string|null

Summary

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

Details:

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

public setOnBehalfOf() : mixed

public setOnBehalfOf(string $value) : mixed

Summary

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

Description

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

Details:

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

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 2021-12-09 using phpDocumentor

© 2021 YooMoney