Stripe/Billing/Invoice/Item.pm

filter: Statementstmt 44.4% 20 / 45 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 21.8% 7 / 32 Podpod 92.0% 23 / 25 totaltotal 49.0% 50 / 102 CC 1 SCAR 5.8
CC
1
Cov
44%
id
2.0
object
2.0
amount
2.0
CRAP 1.8
« Stripe/Payment/Intent/Setup.pm ↑ Summary Stripe/Billing/CreditNote.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Billing/Invoice/Item.pm
3 ## Version v0.100.1
4 ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2020/10/22
8 ## All rights reserved
9 ##
10 ## This program is free software; you can redistribute it and/or modify it
11 ## under the same terms as Perl itself.
12 ##----------------------------------------------------------------------------
13 ## https://stripe.com/docs/api/invoiceitems
14 package Net::API::Stripe::Billing::Invoice::Item;
15 BEGIN
16 2 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 our( $VERSION ) = 'v0.100.1';
22 };
23  
24 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
28  
29 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
30  
31 0 ▶sub amount { return( shift->_set_get_number( 'amount', @_ ) ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
32  
33 0 ▶sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
34  
35 0 ▶sub customer { return( shift->_set_get_scalar_or_object( 'customer', 'Net::API::Stripe::Customer', @_ ) ); }
Subroutine customer: not called CC=1 SCAR=6.9
Pod documented
36  
37 0 ▶sub date { return( shift->_set_get_datetime( 'date', @_ ) ); }
Subroutine date: not called CC=1 SCAR=6.9
Pod documented
38  
39 0 ▶sub deleted { return( shift->_set_get_boolean( 'deleted', @_ ) ); }
Subroutine deleted: not called CC=1 SCAR=6.9
Pod undocumented
40  
41 0 ▶sub description { return( shift->_set_get_scalar( 'description', @_ ) ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
42  
43 0 ▶sub discountable { return( shift->_set_get_boolean( 'discountable', @_ ) ); }
Subroutine discountable: not called CC=1 SCAR=6.9
Pod documented
44  
45 0 ▶sub discounts { return( shift->_set_get_object_array( 'discounts', 'Net::API::Stripe::Billing::Discount', @_ ) ); }
Subroutine discounts: not called CC=1 SCAR=6.9
Pod documented
46  
47 0 ▶sub invoice { return( shift->_set_get_scalar_or_object( 'invoice', 'Net::API::Stripe::Billing::Invoice', @_ ) ); }
Subroutine invoice: not called CC=1 SCAR=6.9
Pod documented
48  
49 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
50  
51 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
52  
53 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
54  
55 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
56  
57 0 ▶sub price { return( shift->_set_get_object( 'price', 'Net::API::Stripe::Price', @_ ) ); }
Subroutine price: not called CC=1 SCAR=6.9
Pod documented
58  
59 0 ▶sub proration { return( shift->_set_get_boolean( 'proration', @_ ) ); }
Subroutine proration: not called CC=1 SCAR=6.9
Pod documented
60  
61 0 ▶sub quantity { return( shift->_set_get_number( 'quantity', @_ ) ); }
Subroutine quantity: not called CC=1 SCAR=6.9
Pod documented
62  
63 0 ▶sub subscription { return( shift->_set_get_scalar_or_object( 'subscription', 'Net::API::Stripe::Billing::Subscription', @_ ) ); }
Subroutine subscription: not called CC=1 SCAR=6.9
Pod documented
64  
65 0 ▶sub subscription_item { return( shift->_set_get_scalar( 'subscription_item', @_ ) ); }
Subroutine subscription_item: not called CC=1 SCAR=6.9
Pod documented
66  
67 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
68  
69 0 ▶sub test_clock { return( shift->_set_get_scalar_or_object( 'test_clock', 'Net::API::Stripe::Billing::TestClock', @_ ) ); }
Subroutine test_clock: not called CC=1 SCAR=6.9
Pod undocumented
70  
71 0 ▶sub unified_proration { return( shift->_set_get_scalar( 'unified_proration', @_ ) ); }
Subroutine unified_proration: not called CC=1 SCAR=6.9
Pod documented
72  
73 0 ▶sub unit_amount { return( shift->_set_get_number( 'unit_amount', @_ ) ); }
Subroutine unit_amount: not called CC=1 SCAR=6.9
Pod documented
74  
75 0 ▶sub unit_amount_decimal { return( shift->_set_get_number( 'unit_amount_decimal', @_ ) ); }
Subroutine unit_amount_decimal: not called CC=1 SCAR=6.9
Pod documented
76  
77 2 1;
78  
79 __END__
« Stripe/Payment/Intent/Setup.pm ↑ Summary Stripe/Billing/CreditNote.pm »