Stripe/Billing/Subscription/Schedule.pm

filter: Statementstmt 41.6% 20 / 48 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 7 / 35 Podpod 100% 28 / 28 totaltotal 49.5% 55 / 111 CC 1 SCAR 5.9
CC
1
Cov
42%
id
2.0
object
2.0
application
2.0
CRAP 1.8
« Stripe/Issuing/Authorization.pm ↑ Summary Stripe/Payment/Link.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Billing/Subscription/Schedule.pm
3 ## Version v0.101.0
4 ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/12/25
7 ## Modified 2022/10/29
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 package Net::API::Stripe::Billing::Subscription::Schedule;
14 BEGIN
15 2 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 our( $VERSION ) = 'v0.101.0';
21 };
22  
23 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub application { return( shift->_set_get_scalar_or_object( 'application', 'Net::API::Stripe::Connect::Account', @_ ) ); }
Subroutine application: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub canceled_at { return( shift->_set_get_datetime( 'canceled_at', @_ ) ); }
Subroutine canceled_at: not called CC=1 SCAR=6.9
Pod documented
33  
34 0 ▶sub completed_at { return( shift->_set_get_datetime( 'completed_at', @_ ) ); }
Subroutine completed_at: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub created { return( shift->_set_get_datetime( 'created', @_ ) ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
37  
38 sub current_phase
39 0 ▶{
Subroutine current_phase: not called CC=1 SCAR=6.9
Pod documented
40 0 return( shift->_set_get_class( 'current_phase',
41 {
42 end_date => { type => 'datetime' },
43 start_date => { type => 'datetime' },
44 }, @_ )
45 );
46 }
47  
48 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
49  
50 0 ▶sub default_settings { return( shift->_set_get_object( 'default_settings', 'Net::API::Stripe::Billing::Subscription', @_ ) ); }
Subroutine default_settings: not called CC=1 SCAR=6.9
Pod documented
51  
52 0 ▶sub end_behavior { return( shift->_set_get_scalar( 'end_behavior', @_ ) ); }
Subroutine end_behavior: not called CC=1 SCAR=6.9
Pod documented
53  
54 0 ▶sub from_subscription { return( shift->_set_get_scalar_or_object( 'from_subscription', 'Net::API::Stripe::Billing::Subscription', @_ ) ); }
Subroutine from_subscription: not called CC=1 SCAR=6.9
Pod documented
55  
56 0 ▶sub invoice_now { return( shift->_set_get_boolean( 'invoice_now', @_ ) ); }
Subroutine invoice_now: not called CC=1 SCAR=6.9
Pod documented
57  
58 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
59  
60 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
61  
62 0 ▶sub phases { return( shift->_set_get_object_array( 'phases', 'Net::API::Stripe::Billing::Subscription', @_ ) ); }
Subroutine phases: not called CC=1 SCAR=6.9
Pod documented
63  
64 0 ▶sub preserve_cancel_date { return( shift->_set_get_boolean( 'preserve_cancel_date', @_ ) ); }
Subroutine preserve_cancel_date: not called CC=1 SCAR=6.9
Pod documented
65  
66 0 ▶sub prorate { return( shift->_set_get_boolean( 'prorate', @_ ) ); }
Subroutine prorate: not called CC=1 SCAR=6.9
Pod documented
67  
68 0 ▶sub proration_behavior { return( shift->_set_get_scalar( 'proration_behavior', @_ ) ); }
Subroutine proration_behavior: not called CC=1 SCAR=6.9
Pod documented
69  
70 0 ▶sub released_at { return( shift->_set_get_datetime( 'released_at', @_ ) ); }
Subroutine released_at: not called CC=1 SCAR=6.9
Pod documented
71  
72 0 ▶sub released_subscription { return( shift->_set_get_scalar( 'released_subscription', @_ ) ); }
Subroutine released_subscription: not called CC=1 SCAR=6.9
Pod documented
73  
74 0 ▶sub renewal_interval { return( shift->_set_get_scalar( 'renewal_interval', @_ ) ); }
Subroutine renewal_interval: not called CC=1 SCAR=6.9
Pod documented
75  
76 0 ▶sub start_date { return( shift->_set_get_datetime( 'start_date', @_ ) ); }
Subroutine start_date: not called CC=1 SCAR=6.9
Pod documented
77  
78 0 ▶sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
79  
80 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
81  
82 ## Undocumented but appears in data returned
83  
84 0 ▶sub tax_percent { return( shift->_set_get_number( 'tax_percent', @_ ) ); }
Subroutine tax_percent: not called CC=1 SCAR=6.9
Pod documented
85  
86 ## Undocumented but appears in data returned
87  
88 0 ▶sub test_clock { return( shift->_set_get_scalar_or_object( 'test_clock', 'Net::API::Stripe::Billing::TestHelpersTestClock', @_ ) ); }
Subroutine test_clock: not called CC=1 SCAR=6.9
Pod documented
89  
90 sub transfer_data
91 0 ▶{
Subroutine transfer_data: not called CC=1 SCAR=6.9
Pod documented
92 0 return( shift->_set_get_class( 'transfer_data',
93 {
94 amount_percent => { type => 'number' },
95 destination => { type => 'object', class => 'Net::API::Stripe::Connect::Account' },
96 }, @_ ) );
97 }
98  
99 ## Undocumented but appears in data returned
100  
101 0 ▶sub trial_end { return( shift->_set_get_datetime( 'trial_end', @_ ) ); }
Subroutine trial_end: not called CC=1 SCAR=6.9
Pod documented
102  
103 2 1;
104  
105 __END__
« Stripe/Issuing/Authorization.pm ↑ Summary Stripe/Payment/Link.pm »