Stripe/List/Item.pm

filter: Statementstmt 57.1% 20 / 35 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 31.8% 7 / 22 Podpod 93.3% 14 / 15 totaltotal 56.9% 41 / 72 CC 1 SCAR 5.2
CC
1
Cov
57%
id
2.0
object
2.0
adjustable_quantity
2.0
CRAP 1.7
« Stripe/Payment/Intent/NextAction.pm ↑ Summary Stripe/Connect/Account/Document.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/List/Item.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2022/10/29
8 ##
9 ##----------------------------------------------------------------------------
10 package Net::API::Stripe::List::Item;
11 BEGIN
12 3 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
17 3 our( $VERSION ) = 'v0.2.0';
18 };
19  
20 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
24  
25 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
26  
27 0 ▶sub adjustable_quantity { return( shift->_set_get_class( 'adjustable_quantity',
Subroutine adjustable_quantity: not called CC=1 SCAR=6.9
Pod undocumented
28 {
29 enabled => { type => "boolean" },
30 maximum => { type => "integer" },
31 minimum => { type => "integer" },
32 }, @_ ) ); }
33  
34 0 ▶sub amount { return( shift->_set_get_number( 'amount', @_ ) ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub amount_discount { return( shift->_set_get_number( 'amount_discount', @_ ) ); }
Subroutine amount_discount: not called CC=1 SCAR=6.9
Pod documented
37  
38 0 ▶sub amount_subtotal { return( shift->_set_get_number( 'amount_subtotal', @_ ) ); }
Subroutine amount_subtotal: not called CC=1 SCAR=6.9
Pod documented
39  
40 0 ▶sub amount_tax { return( shift->_set_get_number( 'amount_tax', @_ ) ); }
Subroutine amount_tax: not called CC=1 SCAR=6.9
Pod documented
41  
42 0 ▶sub amount_total { return( shift->_set_get_number( 'amount_total', @_ ) ); }
Subroutine amount_total: not called CC=1 SCAR=6.9
Pod documented
43  
44 0 ▶sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
45  
46 0 ▶sub description { return( shift->_set_get_scalar( 'description', @_ ) ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
47  
48 0 ▶sub discounts { return( shift->_set_get_class( 'discounts',
Subroutine discounts: not called CC=1 SCAR=6.9
Pod documented
49 {
50 amount => { type => 'integer' },
51 discount => { package => 'Net::API::Stripe::Billing::Discount' },
52 }, @_ ) ); }
53  
54 0 ▶sub price { return( shift->_set_get_scalar_or_object( 'price', 'Net::API::Stripe::Price', @_ ) ); }
Subroutine price: not called CC=1 SCAR=6.9
Pod documented
55  
56 0 ▶sub quantity { return( shift->_set_get_number( 'quantity', @_ ) ); }
Subroutine quantity: not called CC=1 SCAR=6.9
Pod documented
57  
58 0 ▶sub taxes { return( shift->_set_get_class( 'taxes',
Subroutine taxes: not called CC=1 SCAR=6.9
Pod documented
59 {
60 amount => { type => 'integer' },
61 rate => { package => 'Net::API::Stripe::Tax::Rate' },
62 }, @_ ) ); }
63  
64 0 ▶sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
65  
66 3 1;
67  
68 __END__
« Stripe/Payment/Intent/NextAction.pm ↑ Summary Stripe/Connect/Account/Document.pm »