Stripe/Billing/Discount.pm

filter: Statementstmt 64.5% 20 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 38.8% 7 / 18 Podpod 100% 11 / 11 totaltotal 63.3% 38 / 60 CC 1 SCAR 4.8
CC
1
Cov
65%
object
2.0
id
2.0
checkout_session
2.0
CRAP 1.6
« Stripe/SetupAttempt.pm ↑ Summary Stripe/File.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Billing/Discount.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/discounts
11 package Net::API::Stripe::Billing::Discount;
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::Generic );
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 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub checkout_session { return( shift->_set_get_scalar( 'checkout_session', @_ ) ); }
Subroutine checkout_session: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub coupon { return( shift->_set_get_object( 'coupon', 'Net::API::Stripe::Billing::Coupon', @_ ) ); }
Subroutine coupon: not called CC=1 SCAR=6.9
Pod documented
31  
32 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
33  
34 0 ▶sub end { return( shift->_set_get_datetime( 'end', @_ ) ); }
Subroutine end: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub invoice { return( shift->_set_get_scalar( 'invoice', @_ ) ); }
Subroutine invoice: not called CC=1 SCAR=6.9
Pod documented
37  
38 0 ▶sub invoice_item { return( shift->_set_get_scalar( 'invoice_item', @_ ) ); }
Subroutine invoice_item: not called CC=1 SCAR=6.9
Pod documented
39  
40 0 ▶sub promotion_code { return( shift->_set_get_scalar_or_object( 'promotion_code', 'Net::API::Stripe::Billing::PromotionCode', @_ ) ); }
Subroutine promotion_code: not called CC=1 SCAR=6.9
Pod documented
41  
42 0 ▶sub start { return( shift->_set_get_datetime( 'start', @_ ) ); }
Subroutine start: not called CC=1 SCAR=6.9
Pod documented
43  
44 0 ▶sub subscription { return( shift->_set_get_scalar( 'subscription', @_ ) ); }
Subroutine subscription: not called CC=1 SCAR=6.9
Pod documented
45  
46 2 1;
47  
48 __END__
« Stripe/SetupAttempt.pm ↑ Summary Stripe/File.pm »