Stripe/Billing/Invoice/LineItem.pm

filter: Statementstmt 52.6% 20 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.0% 7 / 25 Podpod 100% 18 / 18 totaltotal 55.5% 45 / 81 CC 1 SCAR 5.4
CC
1
Cov
53%
amount_excluding_tax
2.0
discount_amounts
2.0
discountable
2.0
CRAP 1.7
« Stripe/Refund.pm ↑ Summary Stripe/Connect/Account/Company.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Billing/Invoice/LineItem.pm
3 ## Version v0.100.0
4 ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2020/05/15
8 ##
9 ##----------------------------------------------------------------------------
10 ## https://stripe.com/docs/api/invoices/line_item
11 package Net::API::Stripe::Billing::Invoice::LineItem;
12 BEGIN
13 2 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶ use parent qw( Net::API::Stripe::List::Item );
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 our( $VERSION ) = 'v0.100.0';
19 };
20  
21 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 # NOTE: method id is inherited
25  
26 # NOTE: method object is inherited
27  
28 # NOTE: method amount is inherited
29  
30 0 ▶sub amount_excluding_tax { return( shift->_set_get_number( 'amount_excluding_tax', @_ ) ); }
Subroutine amount_excluding_tax: not called CC=1 SCAR=6.9
Pod documented
31  
32 # NOTE: method currency is inherited
33  
34 # NOTE: method description is inherited
35  
36 sub discount_amounts
37 0 ▶{
Subroutine discount_amounts: not called CC=1 SCAR=6.9
Pod documented
38 0 return( shift->_set_get_class_array( 'discount_amounts',
39 {
40 amount => { type => 'number' },
41 discount => { type => 'object', class => 'Net::API::Stripe::Billing::Discount' },
42 }, @_ ) );
43 }
44  
45 0 ▶sub discountable { return( shift->_set_get_boolean( 'discountable', @_ ) ); }
Subroutine discountable: not called CC=1 SCAR=6.9
Pod documented
46  
47 0 ▶sub discounts { return( shift->_set_get_scalar_or_object_array( 'discounts', 'Net::API::Stripe::Billing::Discount', @_ ) ); }
Subroutine discounts: not called CC=1 SCAR=6.9
Pod documented
48  
49 0 ▶sub invoice_item { return( shift->_set_get_scalar( 'invoice_item', @_ ) ); }
Subroutine invoice_item: not called CC=1 SCAR=6.9
Pod documented
50  
51 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
52  
53 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
54  
55 0 ▶sub period { return( shift->_set_get_object( 'period', 'Net::API::Stripe::Billing::Invoice::Period', @_ ) ); }
Subroutine period: not called CC=1 SCAR=6.9
Pod documented
56  
57 0 ▶sub plan { return( shift->_set_get_object( 'plan', 'Net::API::Stripe::Billing::Plan', @_ ) ); }
Subroutine plan: not called CC=1 SCAR=6.9
Pod documented
58  
59 # NOTE: method price is inherited
60  
61 0 ▶sub proration { return( shift->_set_get_boolean( 'proration', @_ ) ); }
Subroutine proration: not called CC=1 SCAR=6.9
Pod documented
62  
63 0 ▶sub proration_details { return( shift->_set_get_class( 'proration_details',
Subroutine proration_details: not called CC=1 SCAR=6.9
Pod documented
64 {
65 credited_items => { type => 'class', definition =>
66 {
67 invoice => { type => 'string' },
68 invoice_line_items => { type => 'array' },
69 }},
70 }, @_ ) ); }
71  
72 # NOTE: method quantity is inherited
73  
74 0 ▶sub subscription { return( shift->_set_get_scalar( 'subscription', @_ ) ); }
Subroutine subscription: not called CC=1 SCAR=6.9
Pod documented
75  
76 0 ▶sub subscription_item { return( shift->_set_get_scalar( 'subscription_item', @_ ) ); }
Subroutine subscription_item: not called CC=1 SCAR=6.9
Pod documented
77  
78 0 ▶sub tax_amounts { return( shift->_set_get_object_array( 'tax_amounts', 'Net::API::Stripe::Billing::Invoice::TaxAmount', @_ ) ); }
Subroutine tax_amounts: not called CC=1 SCAR=6.9
Pod documented
79  
80 0 ▶sub tax_rates { return( shift->_set_get_object_array( 'tax_rates', 'Net::API::Stripe::Tax::Rate', @_ ) ); }
Subroutine tax_rates: not called CC=1 SCAR=6.9
Pod documented
81  
82 # The source type: invoiceitem or subscription
83 # NOTE: method type is inherited
84  
85 0 ▶sub unified_proration { return( shift->_set_get_scalar( 'unified_proration', @_ ) ); }
Subroutine unified_proration: not called CC=1 SCAR=6.9
Pod documented
86  
87 0 ▶sub unique_id { return( shift->_set_get_scalar( 'unique_id', @_ ) ); }
Subroutine unique_id: not called CC=1 SCAR=6.9
Pod documented
88  
89 0 ▶sub unit_amount_excluding_tax { return( shift->_set_get_number( 'unit_amount_excluding_tax', @_ ) ); }
Subroutine unit_amount_excluding_tax: not called CC=1 SCAR=6.9
Pod documented
90  
91 2 1;
92  
93 __END__
« Stripe/Refund.pm ↑ Summary Stripe/Connect/Account/Company.pm »