SuccessfulPayment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities\Payments;
13
14
use Longman\TelegramBot\Entities\Entity;
15
16
/**
17
 * Class SuccessfulPayment
18
 *
19
 * This object contains basic information about a successful payment.
20
 *
21
 * @link https://core.telegram.org/bots/api#successfulpayment
22
 *
23
 * @method string    getCurrency()                Three-letter ISO 4217 currency code
24
 * @method int       getTotalAmount()             Total price in the smallest units of the currency (integer, not float/double).
25
 * @method string    getInvoicePayload()          Bot specified invoice payload
26
 * @method string    getShippingOptionId()        Optional. Identifier of the shipping option chosen by the user
27
 * @method OrderInfo getOrderInfo()               Optional. Order info provided by the user
28
 * @method string    getTelegramPaymentChargeId() Telegram payment identifier
29
 * @method string    getProviderPaymentChargeId() Provider payment identifier
30
 **/
31
class SuccessfulPayment extends Entity
32
{
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function subEntities(): array
37
    {
38
        return [
39
            'order_info' => OrderInfo::class,
40
        ];
41
    }
42
}
43