Files
yookassa-sdk-php/docs/classes/YooKassa-Model-ReceiptInterface.md
T
2021-09-16 16:54:40 +03:00

5.8 KiB

YooKassa API SDK

Interface: ReceiptInterface

Namespace: \YooKassa\Model


Summary:

Interface ReceiptInterface


Constants

  • No constants found

Methods

Visibility Name Flag Summary
public getCustomer() Возвращает информацию о плательщике
public getItems() Возвращает список позиций в текущем чеке
public getObjectId() Возвращает Id объекта чека
public getSettlements() Возвращает массив оплат, обеспечивающих выдачу товара.
public getTaxSystemCode() Возвращает код системы налогообложения
public normalize() Подгоняет стоимость товаров в чеке к общей цене заказа
public notEmpty() Проверяет есть ли в чеке хотя бы одна позиция

Details


Tags

Tag Version Description
property-read Информация о плательщике
property-read Список товаров в заказе
property-read Код системы налогообложения. Число 1-6.
property-read Код системы налогообложения. Число 1-6.

Methods

public getObjectId() : string

public getObjectId() : string

Summary

Возвращает Id объекта чека

Details:

Returns: string - Id объекта чека

public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface

public getCustomer() : \YooKassa\Model\ReceiptCustomerInterface

Summary

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

Details:

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

public getItems() : \YooKassa\Model\ReceiptItemInterface[]

public getItems() : \YooKassa\Model\ReceiptItemInterface[]

Summary

Возвращает список позиций в текущем чеке

Details:

Returns: \YooKassa\Model\ReceiptItemInterface[] - Список товаров в заказе

public getSettlements() : \YooKassa\Model\SettlementInterface[]

public getSettlements() : \YooKassa\Model\SettlementInterface[]

Summary

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

Details:

Returns: \YooKassa\Model\SettlementInterface[] - Массив оплат, обеспечивающих выдачу товара.

public getTaxSystemCode() : int

public getTaxSystemCode() : int

Summary

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

Details:

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

public notEmpty() : bool

public notEmpty() : bool

Summary

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

Details:

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

public normalize() : mixed

public normalize(\YooKassa\Model\AmountInterface $orderAmount, bool $withShipping = false) : mixed

Summary

Подгоняет стоимость товаров в чеке к общей цене заказа

Details:

Parameters:
Type Name Description
\YooKassa\Model\AmountInterface orderAmount Общая стоимость заказа
bool withShipping Поменять ли заодно и цену доставки

Returns: mixed -


Top Namespaces


Reports


This document was automatically generated from source code comments on 2021-09-16 using phpDocumentor

© 2021 YooMoney