Файл: upload/core/vendor/longman/telegram-bot/src/Entities/Payments/SuccessfulPayment.php
Строк: 68
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LongmanTelegramBotEntitiesPayments;
use LongmanTelegramBotEntitiesEntity;
/**
* Class SuccessfulPayment
*
* This object contains basic information about a successful payment.
*
* @link https://core.telegram.org/bots/api#successfulpayment
*
* @method string getCurrency() Three-letter ISO 4217 currency code
* @method int getTotalAmount() Total price in the smallest units of the currency (integer, not float/double).
* @method string getInvoicePayload() Bot specified invoice payload
* @method string getShippingOptionId() Optional. Identifier of the shipping option chosen by the user
* @method OrderInfo getOrderInfo() Optional. Order info provided by the user
* @method string getTelegramPaymentChargeId() Telegram payment identifier
* @method string getProviderPaymentChargeId() Provider payment identifier
**/
class SuccessfulPayment extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'order_info' => OrderInfo::class,
];
}
}