Stripe/Exception.pm

filter: Statementstmt 30.5% 11 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 23.5% 4 / 17 Podpod 100% 13 / 13 totaltotal 42.4% 28 / 66 CC 1 SCAR 5.7
CC
1
Cov
31%
init
2.0
charge
2.0
decline_code
2.0
CRAP 1.8
« Stripe/Billing/Plan.pm ↑ Summary Stripe/Identity/VerificationReport.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/HTTP/Promise/Exception.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/10/18
7 ## Modified 2022/10/18
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::Exception;
14 BEGIN
15 1 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶ use parent qw( Module::Generic::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 our $VERSION = 'v0.1.0';
20 };
21  
22 sub init
23 0 ▶{
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
24 0 my $self = shift( @_ );
25 0 $self->{charge} = undef;
26 0 $self->{decline_code} = undef;
27 0 $self->{http_code} = undef;
28 0 $self->{http_headers} = undef;
29 0 $self->{param} = undef;
30 0 $self->{payment_intent} = undef;
31 0 $self->{payment_method} = undef;
32 0 $self->{payment_method_type} = undef;
33 0 $self->{request_log_url} = undef;
34 0 $self->{setup_intent} = undef;
35 0 $self->{source} = undef;
36 0 return( $self->SUPER::init( @_ ) );
37 }
38  
39 0 ▶sub charge { return( shift->_set_get_scalar_as_object( 'charge', @_ ) ); }
Subroutine charge: not called CC=1 SCAR=6.9
Pod documented
40  
41 0 ▶sub decline_code { return( shift->_set_get_scalar_as_object( 'decline_code', @_ ) ); }
Subroutine decline_code: not called CC=1 SCAR=6.9
Pod documented
42  
43 0 ▶sub doc_url { return( shift->_set_get_uri( 'doc_url', @_ ) ); }
Subroutine doc_url: not called CC=1 SCAR=6.9
Pod documented
44  
45 0 ▶sub http_code { return( shift->_set_get_number( 'http_code', @_ ) ); }
Subroutine http_code: not called CC=1 SCAR=6.9
Pod documented
46  
47 0 ▶sub http_headers { return( shift->_set_get_object( 'http_headers', 'HTTP::Promise::Headers', @_ ) ); }
Subroutine http_headers: not called CC=1 SCAR=6.9
Pod documented
48  
49 0 ▶sub param { return( shift->_set_get_scalar_as_object( 'param', @_ ) ); }
Subroutine param: not called CC=1 SCAR=6.9
Pod documented
50  
51 0 ▶sub payment_intent { return( shift->_set_get_object_without_init( 'payment_intent', 'Net::API::Stripe::Payment::Intent', @_ ) ); }
Subroutine payment_intent: not called CC=1 SCAR=6.9
Pod documented
52  
53 0 ▶sub payment_method { return( shift->_set_get_object_without_init( 'payment_method', 'Net::API::Stripe::Payment::Method', @_ ) ); }
Subroutine payment_method: not called CC=1 SCAR=6.9
Pod documented
54  
55 0 ▶sub payment_method_type { return( shift->_set_get_scalar_as_object( 'payment_method_type', @_ ) ); }
Subroutine payment_method_type: not called CC=1 SCAR=6.9
Pod documented
56  
57 0 ▶sub request_log_url { return( shift->_set_get_uri( 'request_log_url', @_ ) ); }
Subroutine request_log_url: not called CC=1 SCAR=6.9
Pod documented
58  
59 0 ▶sub setup_intent { return( shift->_set_get_object_without_init( 'setup_intent', 'Net::API::Stripe::Payment::Intent::Setup', @_ ) ); }
Subroutine setup_intent: not called CC=1 SCAR=6.9
Pod documented
60  
61 0 ▶sub source { return( shift->_set_get_object_without_init( 'source', 'Net::API::Stripe::Payment::Source', @_ ) ); }
Subroutine source: not called CC=1 SCAR=6.9
Pod documented
62  
63 1 1;
64 # NOTE: POD
65 __END__
« Stripe/Billing/Plan.pm ↑ Summary Stripe/Identity/VerificationReport.pm »