line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Stripe::Product; |
2
|
|
|
|
|
|
|
$Net::Stripe::Product::VERSION = '0.40_005'; # TRIAL |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
14
|
$Net::Stripe::Product::VERSION = '0.40005';use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
14
|
|
5
|
2
|
|
|
2
|
|
11562
|
use Kavorka; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
6
|
|
|
|
|
|
|
extends 'Net::Stripe::Resource'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: represent a Product object from Stripe |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Object creation |
11
|
|
|
|
|
|
|
has 'active' => (is => 'ro', isa => 'Maybe[Bool]'); |
12
|
|
|
|
|
|
|
has 'attributes' => (is => 'ro', isa => 'Maybe[ArrayRef[Str]]'); |
13
|
|
|
|
|
|
|
has 'caption' => (is => 'ro', isa => 'Maybe[Str]'); |
14
|
|
|
|
|
|
|
has 'deactivate_on' => (is => 'ro', isa => 'Maybe[ArrayRef[Str]]'); |
15
|
|
|
|
|
|
|
has 'description' => (is => 'ro', isa => 'Maybe[Str]'); |
16
|
|
|
|
|
|
|
has 'id' => (is => 'ro', isa => 'Maybe[StripeProductId|Str]'); |
17
|
|
|
|
|
|
|
has 'images' => (is => 'ro', isa => 'Maybe[ArrayRef[Str]]'); |
18
|
|
|
|
|
|
|
has 'metadata' => (is => 'ro', isa => 'Maybe[HashRef[Str]|EmptyStr]'); |
19
|
|
|
|
|
|
|
has 'name' => (is => 'ro', isa => 'Maybe[Str]'); |
20
|
|
|
|
|
|
|
has 'package_dimensions' => (is => 'ro', isa => 'Maybe[HashRef[Num]]'); |
21
|
|
|
|
|
|
|
has 'shippable' => (is => 'ro', isa => 'Maybe[Bool]'); |
22
|
|
|
|
|
|
|
has 'statement_descriptor' => (is => 'ro', isa => 'Maybe[Str]'); |
23
|
|
|
|
|
|
|
has 'type' => (is => 'ro', isa => 'Maybe[StripeProductType]'); |
24
|
|
|
|
|
|
|
has 'unit_label' => (is => 'ro', isa => 'Maybe[Str]'); |
25
|
|
|
|
|
|
|
has 'url' => (is => 'ro', isa => 'Maybe[Str]'); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# API response |
28
|
|
|
|
|
|
|
has 'created' => (is => 'ro', isa => 'Maybe[Int]'); |
29
|
|
|
|
|
|
|
has 'livemode' => (is => 'ro', isa => 'Maybe[Bool]'); |
30
|
|
|
|
|
|
|
has 'updated' => (is => 'ro', isa => 'Maybe[Int]'); |
31
|
|
|
|
|
|
|
|
32
|
2
|
0
|
|
2
|
|
4172
|
method form_fields { |
|
2
|
|
|
0
|
|
4
|
|
|
2
|
|
|
|
|
617
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $self->form_fields_for( |
34
|
|
|
|
|
|
|
qw/ active attributes caption deactivate_on description id images |
35
|
|
|
|
|
|
|
metadata name package_dimensions shippable statement_descriptor |
36
|
|
|
|
|
|
|
type unit_label url / |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=pod |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Net::Stripe::Product - represent a Product object from Stripe |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
version 0.40_005 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 active |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Reader: active |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Type: Maybe[Bool] |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 attributes |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Reader: attributes |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Type: Maybe[ArrayRef[Str]] |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 boolean_attributes |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Reader: boolean_attributes |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Type: ArrayRef[Str] |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 caption |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Reader: caption |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Type: Maybe[Str] |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 created |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Reader: created |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Type: Maybe[Int] |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 deactivate_on |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Reader: deactivate_on |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Type: Maybe[ArrayRef[Str]] |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 description |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Reader: description |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Type: Maybe[Str] |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 id |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Reader: id |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Type: Maybe[Str|StripeProductId] |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 images |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Reader: images |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Type: Maybe[ArrayRef[Str]] |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 livemode |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Reader: livemode |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Type: Maybe[Bool] |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head2 metadata |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Reader: metadata |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Type: Maybe[EmptyStr|HashRef[Str]] |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 name |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Reader: name |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Type: Maybe[Str] |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head2 package_dimensions |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Reader: package_dimensions |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Type: Maybe[HashRef[Num]] |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head2 shippable |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
Reader: shippable |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Type: Maybe[Bool] |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 statement_descriptor |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
Reader: statement_descriptor |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
Type: Maybe[Str] |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=head2 type |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Reader: type |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
Type: Maybe[StripeProductType] |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 unit_label |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
Reader: unit_label |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
Type: Maybe[Str] |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head2 updated |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Reader: updated |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
Type: Maybe[Int] |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=head2 url |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
Reader: url |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Type: Maybe[Str] |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head1 AUTHORS |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=over 4 |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=item * |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Luke Closs |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=item * |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
Rusty Conover |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=back |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
190
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=cut |