line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Activity 0.9902 { |
2
|
1
|
|
|
1
|
|
8
|
use strictures 2; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
37
|
|
3
|
1
|
|
|
1
|
|
177
|
use feature 'signatures'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
62
|
|
4
|
1
|
|
|
1
|
|
5
|
no warnings 'experimental::signatures'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
59
|
|
5
|
|
|
|
|
|
|
# |
6
|
1
|
|
|
1
|
|
5
|
use Type::Library 0.008 -base, -declare => qw[Activity]; |
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
5
|
|
7
|
1
|
|
|
1
|
|
414
|
use Type::Utils; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
1546
|
use Types::Standard qw[Enum Num Ref Str]; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
9
|
1
|
|
|
1
|
|
1114
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
7
|
|
10
|
|
|
|
|
|
|
class_type Activity, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Activity, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
1
|
|
|
1
|
|
342
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
14
|
1
|
|
|
1
|
|
312
|
use Types::UUID; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
15
|
1
|
|
|
1
|
|
364
|
use lib './lib'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
16
|
1
|
|
|
1
|
|
134
|
use Finance::Alpaca::Types; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
17
|
|
|
|
|
|
|
has activity_type => ( |
18
|
|
|
|
|
|
|
is => 'ro', |
19
|
|
|
|
|
|
|
isa => Enum [ |
20
|
|
|
|
|
|
|
qw[FILL TRANS MISC ACATC ACATS CSD CSW DIV DIVCGL DIVCGS DIVFEE |
21
|
|
|
|
|
|
|
DIVFT DIVNRA DIVROC DIVTW DIVTXEX INT INTNRA INTTW JNL JNLC JNLS |
22
|
|
|
|
|
|
|
MA NC OPASN OPEXP OPXRC PTC PTR REORG SC SSO SSP] |
23
|
|
|
|
|
|
|
], |
24
|
|
|
|
|
|
|
required => 1 |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
has date => ( is => 'ro', isa => Timestamp, required => 1, coerce => 1 ); |
27
|
|
|
|
|
|
|
has net_amount => ( is => 'ro', isa => Num, required => 1 ); |
28
|
|
|
|
|
|
|
has [qw[id symbol]] => ( is => 'ro', isa => Str, required => 1 ); |
29
|
|
|
|
|
|
|
has [qw[qty per_share_amount]] => ( is => 'ro', isa => Num, predicate => 1 ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |