Stripe/Invoiceitem.pm

filter: Statementstmt 88.4% 23 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 76.4% 26 / 34 CC 3 SCAR 11.6
CC
3
Cov
77%
form_fields
5.3
BEGIN
1.1
BEGIN
1.0
CRAP 3.2
« Stripe/List.pm ↑ Summary Stripe/Plan.pm »
1 package Net::Stripe::Invoiceitem;
2 2 $Net::Stripe::Invoiceitem::VERSION = '0.43';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Kavorka;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 extends 'Net::Stripe::Resource';
6 2 with 'MooseX::Clone';
7  
8 # ABSTRACT: represent an Invoice Item object from Stripe
9  
10 2 has 'id' => (is => 'ro', isa => 'Maybe[Str]');
11 2 has 'customer' => (is => 'ro', isa => 'Maybe[Str]', required => 1);
12 2 has 'amount' => (is => 'rw', isa => 'Maybe[Int]', required => 1);
13 2 has 'currency' => (is => 'rw', isa => 'Maybe[Str]', required => 1, clearer => 'clear_currency');
14 2 has 'description' => (is => 'rw', isa => 'Maybe[Str]');
15 2 has 'date' => (is => 'ro', isa => 'Maybe[Int]');
16 2 has 'invoice' => (is => 'ro', isa => 'Maybe[Str]');
17 2 has 'metadata' => (is => 'rw', isa => 'Maybe[HashRef]');
18  
19 0 ▶method form_fields {
Subroutine BEGIN: called CC=1 SCAR=1.2
Subroutine form_fields: not called CC=3 SCAR=16.7
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
20 0 ▶ return $self->form_fields_for(
Branch: 1 branch
BranchTrueFalseTotal
$self->id ? : 0 0 0
21 qw/amount currency description invoice metadata/,
22 ($self->id ? () : qw/customer/)
23 );
24 }
25  
26 2 __PACKAGE__->meta->make_immutable;
27 2 1;
28  
29 __END__
« Stripe/List.pm ↑ Summary Stripe/Plan.pm »