mirror of
https://git.yoomoney.ru/scm/sdk/yookassa-sdk-php.git
synced 2026-08-25 06:38:01 +00:00
bd2a5b95fd
Обновлены описания классов, свойств и методов для документации Добавлена документация Добавлены примеры использования SDK
82 lines
3.1 KiB
PHP
82 lines
3.1 KiB
PHP
<?php
|
||
|
||
/**
|
||
* The MIT License
|
||
*
|
||
* Copyright (c) 2020 "YooMoney", NBСO LLC
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
* THE SOFTWARE.
|
||
*/
|
||
|
||
namespace YooKassa\Request\Receipts;
|
||
|
||
use YooKassa\Model\AmountInterface;
|
||
use YooKassa\Model\SupplierInterface;
|
||
|
||
/**
|
||
* Interface ReceiptItemInterface
|
||
*
|
||
* @package YooKassa
|
||
*
|
||
* @property-read string $description Название товара (не более 128 символов).
|
||
* @property-read float $quantity Количество товара. Максимально возможное значение зависит от модели вашей онлайн-кассы.
|
||
* @property-read float $amount Суммарная стоимость товара в копейках/центах
|
||
* @property-read AmountInterface $price Цена товара
|
||
* @property-read int $vatCode Ставка НДС, число 1-6
|
||
* @property-read int $vat_code Ставка НДС, число 1-6
|
||
*/
|
||
interface ReceiptResponseItemInterface
|
||
{
|
||
/**
|
||
* Возвращает название товара
|
||
* @return string Название товара (не более 128 символов).
|
||
*/
|
||
function getDescription();
|
||
|
||
/**
|
||
* Возвращает количество товара
|
||
* @return float Количество купленного товара
|
||
*/
|
||
function getQuantity();
|
||
|
||
/**
|
||
* Возвращает общую стоимость покупаемого товара в копейках/центах
|
||
* @return float Сумма стоимости покупаемого товара
|
||
*/
|
||
function getAmount();
|
||
|
||
/**
|
||
* Возвращает цену товара
|
||
* @return AmountInterface Цена товара
|
||
*/
|
||
function getPrice();
|
||
|
||
/**
|
||
* Возвращает ставку НДС
|
||
* @return int|null Ставка НДС, число 1-6, или null если ставка не задана
|
||
*/
|
||
function getVatCode();
|
||
|
||
/**
|
||
* Возвращает информацию о поставщике товара или услуги
|
||
* @return SupplierInterface
|
||
*/
|
||
function getSupplier();
|
||
|
||
} |