line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Bank::Postbank_de::APIv1::Account; |
2
|
10
|
|
|
10
|
|
58
|
use Moo; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
50
|
|
3
|
10
|
|
|
10
|
|
2379
|
use Filter::signatures; |
|
10
|
|
|
|
|
19
|
|
|
10
|
|
|
|
|
46
|
|
4
|
10
|
|
|
10
|
|
255
|
no warnings 'experimental::signatures'; |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
317
|
|
5
|
10
|
|
|
10
|
|
50
|
use feature 'signatures'; |
|
10
|
|
|
|
|
90
|
|
|
10
|
|
|
|
|
4018
|
|
6
|
|
|
|
|
|
|
extends 'HAL::Resource'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.56'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Finance::Bank::Postbank_de::APIv1::Account - Postbank Account |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has [ 'accountHolder', 'name', 'iban', 'currency', 'amount', |
19
|
|
|
|
|
|
|
'productType', |
20
|
|
|
|
|
|
|
] => ( is => 'ro' ); |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
0
|
sub transactions_future( $self ) { |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
23
|
0
|
|
|
0
|
|
0
|
$self->fetch_resource_future( 'transactions' )->then(sub( $r ) { |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
24
|
|
|
|
|
|
|
$self->inflate_list( |
25
|
|
|
|
|
|
|
'Finance::Bank::Postbank_de::APIv1::Transaction', |
26
|
|
|
|
|
|
|
$r->_embedded->{transactionDTOList} |
27
|
|
|
|
|
|
|
) |
28
|
0
|
|
|
|
|
0
|
}); |
|
0
|
|
|
|
|
0
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
0
|
0
|
sub transactions( $self ) { |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
32
|
0
|
|
|
|
|
0
|
$self->transactions_future->get |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
11
|
|
|
11
|
0
|
26
|
sub transactions_csv_future( $self ) { |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
15
|
|
36
|
11
|
|
|
11
|
|
22
|
$self->fetch_resource_future( 'transactions' )->then(sub( $r ) { |
|
11
|
|
|
|
|
1672
|
|
|
11
|
|
|
|
|
24
|
|
37
|
11
|
|
|
|
|
394
|
my $tr = HAL::Resource->new( %$r ); |
38
|
11
|
|
|
|
|
346
|
$self->ua->get( $tr->resource_url('transactions_csv' )); |
39
|
11
|
|
|
|
|
506633
|
Future->done( $self->ua->content ); |
40
|
11
|
|
|
|
|
62
|
}); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
11
|
|
|
11
|
0
|
24
|
sub transactions_csv( $self ) { |
|
11
|
|
|
|
|
23
|
|
|
11
|
|
|
|
|
17
|
|
44
|
11
|
|
|
|
|
40
|
$self->transactions_csv_future->get |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
0
|
0
|
|
sub transactions_xml_future( $self ) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
48
|
0
|
|
|
0
|
|
|
$self->fetch_resource_future( 'transactions' )->then(sub( $r ) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $tr = HAL::Resource->new( %$r ); |
50
|
0
|
|
|
|
|
|
$self->ua->get( $tr->resource_url('transactions_xml' )); |
51
|
0
|
|
|
|
|
|
Future->done( $self->ua->content ); |
52
|
0
|
|
|
|
|
|
}); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
0
|
0
|
|
sub transactions_xml( $self ) { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
$self->transactions_xml_future->get |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Max Maischein, E<lt>corion@cpan.orgE<gt> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L<perl>, L<WWW::Mechanize>. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 REPOSITORY |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The public repository of this module is |
72
|
|
|
|
|
|
|
L<https://github.com/Corion/Finance-Bank-Postbank_de>. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 SUPPORT |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
The public support forum of this module is |
77
|
|
|
|
|
|
|
L<https://perlmonks.org/>. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 BUG TRACKER |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Please report bugs in this module via the RT CPAN bug queue at |
82
|
|
|
|
|
|
|
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Finance-Bank-Postbank_de> |
83
|
|
|
|
|
|
|
or via mail to L<finance-bank-postbank_de-Bugs@rt.cpan.org>. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT (c) |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Copyright 2003-2018 by Max Maischein C<corion@cpan.org>. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 LICENSE |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This module is released under the same terms as Perl itself. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |