| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::ApplePay; | ||
| 4 | 22 | $WebService::Braintree::ApplePay::VERSION = '1.7'; | |
| 5 | 22 | ▶ | use 5.010_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 22 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | WebService::Braintree::ApplePay | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class lists, registers, and unregisters ApplePay domains. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 22 | with 'WebService::Braintree::Role::Interface'; | |
| 21 | |||
| 22 | =head2 registered_domains() | ||
| 23 | |||
| 24 | This returns a L<response|WebService::Braintee::Result> with the C<< apple_pay_options() >> set. | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 0 | ▶ | sub registered_domains { |
|
Subroutine
registered_domains: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | 0 | my $class = shift; | |
| 30 | 0 | $class->gateway->apple_pay->registered_domains; | |
| 31 | } | ||
| 32 | |||
| 33 | =head2 register_domain() | ||
| 34 | |||
| 35 | This registers the domain provided. This returns a L<response|WebService::Braintee::Result> with nothing set. | ||
| 36 | |||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | 0 | ▶ | sub register_domain { |
|
Subroutine
register_domain: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | 0 | my $class = shift; | |
| 42 | 0 | my ($domain) = @_; | |
| 43 | 0 | $class->gateway->apple_pay->register_domain($domain); | |
| 44 | } | ||
| 45 | |||
| 46 | =head2 unregister_domain() | ||
| 47 | |||
| 48 | This unregisters the domain provided. This returns a L<response|WebService::Braintee::Result> with nothing set. | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 0 | ▶ | sub unregister_domain { |
|
Subroutine
unregister_domain: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | 0 | my $class = shift; | |
| 54 | 0 | my ($domain) = @_; | |
| 55 | 0 | $class->gateway->apple_pay->unregister_domain($domain); | |
| 56 | } | ||
| 57 | |||
| 58 | 22 | __PACKAGE__->meta->make_immutable; | |
| 59 | |||
| 60 | 22 | 1; | |
| 61 | __END__ | ||