line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::BancaSella::Gateway; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = "0.11"; |
4
|
0
|
|
|
0
|
0
|
0
|
sub Version { $VERSION; } |
5
|
|
|
|
|
|
|
require 5.004; |
6
|
4
|
|
|
4
|
|
35
|
use strict; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
157
|
|
7
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
2115
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
my %fields = |
10
|
|
|
|
|
|
|
( |
11
|
|
|
|
|
|
|
shopping => undef, |
12
|
|
|
|
|
|
|
otp => undef, |
13
|
|
|
|
|
|
|
amount => undef, |
14
|
|
|
|
|
|
|
id => undef, |
15
|
|
|
|
|
|
|
tid => undef, |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new |
19
|
|
|
|
|
|
|
{ |
20
|
0
|
|
|
0
|
0
|
0
|
my $proto = shift; |
21
|
0
|
|
0
|
|
|
0
|
my $class = ref($proto) || $proto; |
22
|
0
|
|
|
|
|
0
|
my $self = {}; |
23
|
0
|
|
|
|
|
0
|
bless $self,$class; |
24
|
0
|
|
|
|
|
0
|
$self->init(@_); |
25
|
0
|
|
|
|
|
0
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub init { |
29
|
2
|
|
|
2
|
0
|
6
|
my $self = shift; |
30
|
2
|
|
|
|
|
9
|
my (%options) = @_; |
31
|
|
|
|
|
|
|
# Assign default options |
32
|
2
|
|
|
|
|
16
|
while (my ($key,$value) = each(%fields)) { |
33
|
10
|
|
66
|
|
|
68
|
$self->{$key} = $self->{$key} || $value; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
# Assign options |
36
|
2
|
|
|
|
|
12
|
while (my ($key,$value) = each(%options)) { |
37
|
11
|
|
|
|
|
39
|
$self->{$key} = $value |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
4
|
50
|
|
4
|
1
|
7
|
sub shopping { my $s=shift; return @_ ? ($s->{shopping}=shift) : $s->{shopping} } |
|
4
|
|
|
|
|
78
|
|
43
|
7
|
50
|
|
7
|
1
|
63
|
sub otp { my $s=shift; return @_ ? ($s->{otp}=shift) : $s->{otp} } |
|
7
|
|
|
|
|
169
|
|
44
|
4
|
50
|
|
4
|
1
|
33
|
sub amount { my $s=shift; return @_ ? ($s->{amount}=shift) : $s->{amount} } |
|
4
|
|
|
|
|
37
|
|
45
|
7
|
50
|
|
7
|
1
|
62
|
sub id { my $s=shift; return @_ ? ($s->{id}=shift) : $s->{id} } |
|
7
|
|
|
|
|
205
|
|
46
|
4
|
50
|
|
4
|
0
|
5
|
sub tid { my $s=shift; return @_ ? ($s->{tid}=shift) : $s->{tid} } |
|
4
|
|
|
|
|
41
|
|
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
0
|
1
|
0
|
sub uri { my $s=shift; return $s->{uri} } |
|
0
|
|
|
|
|
0
|
|
49
|
0
|
|
|
0
|
1
|
0
|
sub form { my $s=shift; return $s->{form} } |
|
0
|
|
|
|
|
0
|
|
50
|
5
|
|
|
5
|
1
|
11
|
sub result { my $s=shift; return $s->{result} } |
|
5
|
|
|
|
|
145
|
|
51
|
1
|
|
|
1
|
1
|
9
|
sub authcode { my $s=shift; return $s->{authcode} } |
|
1
|
|
|
|
|
8
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
# Preloaded methods go here. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
__END__ |