Bot/Object/SuccessfulPayment.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 80.0% 12 / 15 CC 1 SCAR 4.1
CC
1
Cov
92%
fields
2.0
BEGIN
1.0
CRAP 1.5
« Bot/Object/Invoice.pm ↑ Summary Bot/Object/Audio.pm »
1 package Telegram::Bot::Object::SuccessfulPayment;
2 5 $Telegram::Bot::Object::SuccessfulPayment::VERSION = '0.029';
3 # ABSTRACT: The base class for Telegram 'SuccessfulPayment' type objects
4  
5  
6 5 ▶use Mojo::Base 'Telegram::Bot::Object::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 # use Telegram::Bot::Object::OrderInfo;
8  
9 5 has 'currency';
10 5 has 'total_amount';
11 5 has 'invoice_payload';
12 5 has 'shipping_option_id';
13 # has 'order_info'; #OrderInfo XXX
14 5 has 'telegram_payment_charge_id';
15 5 has 'provider_payment_charge_id';
16  
17 0 ▶sub fields {
Subroutine fields: not called CC=1 SCAR=6.9
Pod undocumented
18 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 5 1;
26  
27 __END__
« Bot/Object/Invoice.pm ↑ Summary Bot/Object/Audio.pm »