line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Web::MarketReceipt; |
2
|
4
|
|
|
4
|
|
781
|
use 5.010000; |
|
4
|
|
|
|
|
16
|
|
3
|
|
|
|
|
|
|
our $VERSION = "0.07"; |
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
547
|
use Mouse; |
|
4
|
|
|
|
|
29475
|
|
|
4
|
|
|
|
|
21
|
|
6
|
4
|
|
|
4
|
|
1478
|
use Mouse::Util::TypeConstraints; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
22
|
|
7
|
4
|
|
|
4
|
|
1132
|
use utf8; |
|
4
|
|
|
|
|
22
|
|
|
4
|
|
|
|
|
19
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
1857
|
use Web::MarketReceipt::Order; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
696
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
subtype 'ArrayRefWebMarketReceiptOrder', |
12
|
|
|
|
|
|
|
as 'ArrayRef[Web::MarketReceipt::Order]'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
coerce 'ArrayRefWebMarketReceiptOrder' |
15
|
|
|
|
|
|
|
=> from 'ArrayRef', |
16
|
|
|
|
|
|
|
=> via { [ map { Web::MarketReceipt::Order->new($_) } @$_ ] }; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has is_success => ( |
19
|
|
|
|
|
|
|
is => 'ro', |
20
|
|
|
|
|
|
|
isa => 'Bool', |
21
|
|
|
|
|
|
|
required => 1, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has raw => ( |
25
|
|
|
|
|
|
|
is => 'ro', |
26
|
|
|
|
|
|
|
required => 1, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has orders => ( |
30
|
|
|
|
|
|
|
is => 'ro', |
31
|
|
|
|
|
|
|
isa => 'ArrayRefWebMarketReceiptOrder', |
32
|
|
|
|
|
|
|
coerce => 1, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
has store => ( |
36
|
|
|
|
|
|
|
is => 'ro', |
37
|
|
|
|
|
|
|
isa => 'Str', |
38
|
|
|
|
|
|
|
required => 1, |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
4
|
|
|
4
|
|
31
|
no Mouse; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
17
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub dump { |
44
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
+{ |
47
|
|
|
|
|
|
|
is_success => $self->is_success, |
48
|
|
|
|
|
|
|
raw => $self->raw, |
49
|
0
|
0
|
|
|
|
|
($self->orders ? (orders => [map {$_->dump} @{ $self->orders }]) : ()) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
}; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
__END__ |