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