« lib/WebService/Braintree/ResourceCollection.pm
↑ Summary
lib/WebService/Braintree/EuropeBankAccount.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||||||||||
| 2 | |||||||||||
| 3 | package # hide from pause | ||||||||||
| 4 | WebService::Braintree::ApplePayGateway; | ||||||||||
| 5 | |||||||||||
| 6 | 22 | ▶ | use 5.010_001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 22 | ▶ | use strictures 1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 22 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 22 | with 'WebService::Braintree::Role::MakeRequest'; | |||||||||
| 11 | |||||||||||
| 12 | 22 | ▶ | use Carp qw(confess); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 22 | ▶ | use WebService::Braintree::Util qw(validate_id); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 22 | ▶ | use WebService::Braintree::_::ApplePay; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub registered_domains { | ||||||||
|
Subroutine
registered_domains: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | 0 | my $self = shift; | |||||||||
| 20 | 0 | $self->_make_request("/processing/apple_pay/registered_domains", "get", undef); | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub register_domain { | ||||||||
|
Subroutine
register_domain: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 24 | 0 | my ($self, $domain) = @_; | |||||||||
| 25 | 0 | ▶ | confess "NotFoundError" unless validate_id($domain); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | $self->_make_request("/processing/apple_pay/validate_domains", "post", {url => $domain}); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub unregister_domain { | ||||||||
|
Subroutine
unregister_domain: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 30 | 0 | my ($self, $domain) = @_; | |||||||||
| 31 | 0 | ▶ | confess "NotFoundError" unless validate_id($domain); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 0 | $self->_make_request("/processing/apple_pay/unregister_domain", "delete", {url => $domain}); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 22 | __PACKAGE__->meta->make_immutable; | |||||||||
| 36 | |||||||||||
| 37 | 22 | 1; | |||||||||
| 38 | __END__ | ||||||||||