| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::Braintree::Gateway; |
|
2
|
|
|
|
|
|
|
$WebService::Braintree::Gateway::VERSION = '0.92'; |
|
3
|
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
234
|
use WebService::Braintree::AddressGateway; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
58
|
|
|
5
|
1
|
|
|
1
|
|
360
|
use WebService::Braintree::ClientTokenGateway; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
30
|
|
|
6
|
1
|
|
|
1
|
|
325
|
use WebService::Braintree::CreditCardGateway; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
34
|
|
|
7
|
1
|
|
|
1
|
|
393
|
use WebService::Braintree::CreditCardVerificationGateway; |
|
|
1
|
|
|
|
|
6
|
|
|
|
1
|
|
|
|
|
53
|
|
|
8
|
1
|
|
|
1
|
|
547
|
use WebService::Braintree::CustomerGateway; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
52
|
|
|
9
|
1
|
|
|
1
|
|
468
|
use WebService::Braintree::MerchantAccountGateway; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
35
|
|
|
10
|
1
|
|
|
1
|
|
389
|
use WebService::Braintree::PaymentMethodGateway; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
28
|
|
|
11
|
1
|
|
|
1
|
|
334
|
use WebService::Braintree::PaymentMethodNonceGateway; |
|
|
1
|
|
|
|
|
6
|
|
|
|
1
|
|
|
|
|
35
|
|
|
12
|
1
|
|
|
1
|
|
367
|
use WebService::Braintree::PayPalAccountGateway; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
29
|
|
|
13
|
1
|
|
|
1
|
|
375
|
use WebService::Braintree::SettlementBatchSummaryGateway; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
33
|
|
|
14
|
1
|
|
|
1
|
|
6
|
use WebService::Braintree::SubscriptionGateway; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
21
|
|
|
15
|
1
|
|
|
1
|
|
334
|
use WebService::Braintree::TransactionGateway; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
31
|
|
|
16
|
1
|
|
|
1
|
|
348
|
use WebService::Braintree::TransparentRedirectGateway; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use WebService::Braintree::WebhookNotificationGateway; |
|
18
|
|
|
|
|
|
|
use WebService::Braintree::WebhookTestingGateway; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use Moose; |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has 'config' => (is => 'ro'); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has 'address' => (is => 'ro', lazy => 1, default => sub { |
|
25
|
|
|
|
|
|
|
my $self = shift; |
|
26
|
|
|
|
|
|
|
WebService::Braintree::AddressGateway->new(gateway => $self); |
|
27
|
|
|
|
|
|
|
}); |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has 'client_token' => (is => 'ro', lazy => 1, default => sub { |
|
30
|
|
|
|
|
|
|
my $self = shift; |
|
31
|
|
|
|
|
|
|
WebService::Braintree::ClientTokenGateway->new(gateway => $self); |
|
32
|
|
|
|
|
|
|
}); |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
has 'credit_card' => (is => 'ro', lazy => 1, default => sub { |
|
35
|
|
|
|
|
|
|
my $self = shift; |
|
36
|
|
|
|
|
|
|
WebService::Braintree::CreditCardGateway->new(gateway => $self); |
|
37
|
|
|
|
|
|
|
}); |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'credit_card_verification' => (is => 'ro', lazy => 1, default => sub { |
|
40
|
|
|
|
|
|
|
my $self = shift; |
|
41
|
|
|
|
|
|
|
WebService::Braintree::CreditCardVerificationGateway->new(gateway => $self); |
|
42
|
|
|
|
|
|
|
}); |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has 'customer' => (is => 'ro', lazy => 1, default => sub { |
|
45
|
|
|
|
|
|
|
my $self = shift; |
|
46
|
|
|
|
|
|
|
WebService::Braintree::CustomerGateway->new(gateway => $self); |
|
47
|
|
|
|
|
|
|
}); |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
has 'merchant_account' => (is => 'ro', lazy => 1, default => sub { |
|
50
|
|
|
|
|
|
|
my $self = shift; |
|
51
|
|
|
|
|
|
|
WebService::Braintree::MerchantAccountGateway->new(gateway => $self); |
|
52
|
|
|
|
|
|
|
}); |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
has 'payment_method' => (is => 'ro', lazy => 1, default => sub { |
|
55
|
|
|
|
|
|
|
my $self = shift; |
|
56
|
|
|
|
|
|
|
WebService::Braintree::PaymentMethodGateway->new(gateway => $self); |
|
57
|
|
|
|
|
|
|
}); |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
has 'payment_method_nonce' => (is => 'ro', lazy => 1, default => sub { |
|
60
|
|
|
|
|
|
|
my $self = shift; |
|
61
|
|
|
|
|
|
|
WebService::Braintree::PaymentMethodNonceGateway->new(gateway => $self); |
|
62
|
|
|
|
|
|
|
}); |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
has 'paypal_account' => (is => 'ro', lazy => 1, default => sub { |
|
65
|
|
|
|
|
|
|
my $self = shift; |
|
66
|
|
|
|
|
|
|
WebService::Braintree::PayPalAccountGateway->new(gateway => $self); |
|
67
|
|
|
|
|
|
|
}); |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
has 'settlement_batch_summary' => (is => 'ro', lazy => 1, default => sub { |
|
70
|
|
|
|
|
|
|
my $self = shift; |
|
71
|
|
|
|
|
|
|
WebService::Braintree::SettlementBatchSummaryGateway->new(gateway => $self); |
|
72
|
|
|
|
|
|
|
}); |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
has 'subscription' => (is => 'ro', lazy => 1, default => sub { |
|
75
|
|
|
|
|
|
|
my $self = shift; |
|
76
|
|
|
|
|
|
|
WebService::Braintree::SubscriptionGateway->new(gateway => $self); |
|
77
|
|
|
|
|
|
|
}); |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
has 'transaction' => (is => 'ro', lazy => 1, default => sub { |
|
80
|
|
|
|
|
|
|
my $self = shift; |
|
81
|
|
|
|
|
|
|
WebService::Braintree::TransactionGateway->new(gateway => $self); |
|
82
|
|
|
|
|
|
|
}); |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
has 'transparent_redirect' => (is => 'ro', lazy => 1, default => sub { |
|
85
|
|
|
|
|
|
|
my $self = shift; |
|
86
|
|
|
|
|
|
|
WebService::Braintree::TransparentRedirectGateway->new(gateway => $self); |
|
87
|
|
|
|
|
|
|
}); |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
has 'webhook_notification' => (is => 'ro', lazy => 1, default => sub { |
|
90
|
|
|
|
|
|
|
my $self = shift; |
|
91
|
|
|
|
|
|
|
WebService::Braintree::WebhookNotificationGateway->new(gateway => $self); |
|
92
|
|
|
|
|
|
|
}); |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
has 'webhook_testing' => (is => 'ro', lazy => 1, default => sub { |
|
95
|
|
|
|
|
|
|
my $self = shift; |
|
96
|
|
|
|
|
|
|
WebService::Braintree::WebhookTestingGateway->new(gateway => $self); |
|
97
|
|
|
|
|
|
|
}); |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub http { |
|
100
|
|
|
|
|
|
|
WebService::Braintree::HTTP->new(config => shift->config); |
|
101
|
|
|
|
|
|
|
} |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
104
|
|
|
|
|
|
|
1; |
|
105
|
|
|
|
|
|
|
|