line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paymill::REST::Operations::Find; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
6260
|
use Moose::Role; |
|
9
|
|
|
|
|
31
|
|
|
9
|
|
|
|
|
79
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub find { |
6
|
0
|
|
|
0
|
1
|
|
my ($self, $identifier) = @_; |
7
|
|
|
|
|
|
|
|
8
|
0
|
|
|
|
|
|
my $uri = $self->base_url . $self->type . 's/' . $identifier; |
9
|
0
|
|
|
|
|
|
my $item_attrs = $self->_get_response({ uri => $uri }); |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
return $self->_build_item($item_attrs); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
9
|
|
|
9
|
|
56790
|
no Moose::Role; |
|
9
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
43
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=encoding utf-8 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Paymill::REST::Operations::Find â Find operation for L<Paymill::REST> as Moose Role |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 FUNCTIONS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 find |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Fetching an item, eg. a transaction or client, via the PAYMILL REST API |
30
|
|
|
|
|
|
|
is made possible through find. Can be called on all item factories. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Expects an identifier string as parameter. An error is thrown when the |
33
|
|
|
|
|
|
|
identifier is not available via the API. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Matthias Dietrich E<lt>perl@rainboxx.deE<gt> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 COPYRIGHT |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Copyright 2013 - Matthias Dietrich |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
46
|
|
|
|
|
|
|
it under the same terms as Perl itself. |