File Coverage

blib/lib/Telegram/Bot/Object/SuccessfulPayment.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 7 57.1


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::SuccessfulPayment;
2             $Telegram::Bot::Object::SuccessfulPayment::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram 'SuccessfulPayment' type objects
4              
5              
6 5     5   35 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         23  
  5         31  
7             # use Telegram::Bot::Object::OrderInfo;
8              
9             has 'currency';
10             has 'total_amount';
11             has 'invoice_payload';
12             has 'shipping_option_id';
13             # has 'order_info'; #OrderInfo XXX
14             has 'telegram_payment_charge_id';
15             has 'provider_payment_charge_id';
16              
17             sub fields {
18 0     0 0   return { scalar => [qw/currency total_amount invoice_payload shipping_option_id
19             telegram_payment_charge_id provider_payment_charge_id/],
20             # 'Telegram::Bot::Object::OrderInfo' => [qw/order_info/],
21              
22             };
23             }
24              
25             1;
26              
27             __END__