line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Stripe::LineItem; |
2
|
|
|
|
|
|
|
$Net::Stripe::LineItem::VERSION = '0.42'; |
3
|
2
|
|
|
2
|
|
16
|
use Moose; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
17
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: represent an Line Item object from Stripe |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has 'id' => (is => 'ro', isa => 'Maybe[Str]'); |
8
|
|
|
|
|
|
|
has 'livemode' => (is => 'ro', isa => 'Maybe[Bool]'); |
9
|
|
|
|
|
|
|
has 'amount' => (is => 'ro', isa => 'Maybe[Int]'); |
10
|
|
|
|
|
|
|
has 'currency' => (is => 'ro', isa => 'Maybe[Str]'); |
11
|
|
|
|
|
|
|
has 'period' => (is => 'ro', isa => 'Maybe[HashRef]'); |
12
|
|
|
|
|
|
|
has 'proration' => (is => 'ro', isa => 'Maybe[Bool]'); |
13
|
|
|
|
|
|
|
has 'type' => (is => 'ro', isa => 'Maybe[Str]'); |
14
|
|
|
|
|
|
|
has 'description' => (is => 'ro', isa => 'Maybe[Str]'); |
15
|
|
|
|
|
|
|
has 'metadata' => (is => 'ro', isa => 'Maybe[HashRef]'); |
16
|
|
|
|
|
|
|
has 'plan' => (is => 'ro', isa => 'Maybe[Net::Stripe::Plan]'); |
17
|
|
|
|
|
|
|
has 'quantity' => (is => 'ro', isa => 'Maybe[Int]'); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Net::Stripe::LineItem - represent an Line Item object from Stripe |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 VERSION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
version 0.42 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 amount |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Reader: amount |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Type: Maybe[Int] |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 currency |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Reader: currency |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Type: Maybe[Str] |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 description |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Reader: description |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Type: Maybe[Str] |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 id |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Reader: id |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Type: Maybe[Str] |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 livemode |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Reader: livemode |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Type: Maybe[Bool] |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 metadata |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Reader: metadata |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 period |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Reader: period |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 plan |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Reader: plan |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Type: Maybe[Net::Stripe::Plan] |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 proration |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Reader: proration |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Type: Maybe[Bool] |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 quantity |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Reader: quantity |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Type: Maybe[Int] |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 type |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Reader: type |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Type: Maybe[Str] |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 AUTHORS |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=over 4 |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Luke Closs |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=item * |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Rusty Conover |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=back |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
121
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=cut |