« lib/WebService/Braintree/TransactionSearch.pm
↑ Summary
lib/WebService/Braintree/ValidationError.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::TransparentRedirect; | ||
| 4 | 22 | $WebService::Braintree::TransparentRedirect::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::TransparentRedirect | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class generates and manages the transparent redirects. | ||
| 15 | |||
| 16 | =head1 EXPLANATION | ||
| 17 | |||
| 18 | TODO | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 22 | with 'WebService::Braintree::Role::Interface'; | |
| 25 | |||
| 26 | =head1 CLASS METHODS | ||
| 27 | |||
| 28 | =head2 confirm() | ||
| 29 | |||
| 30 | This takes a query string and returns whatever confirm() returns. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 1 | ▶ | sub confirm { |
|
Subroutine
confirm: called CC=1 SCAR=0.0
Pod
documented
| |||
| 35 | 1 | my($class, $query_string) = @_; | |
| 36 | 1 | $class->gateway->transparent_redirect->confirm($query_string); | |
| 37 | } | ||
| 38 | |||
| 39 | =head2 transaction_data() | ||
| 40 | |||
| 41 | This takes a hashref of params and returns whatever transaction_data() returns. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 3 | ▶ | sub transaction_data { |
|
Subroutine
transaction_data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 46 | 3 | my ($class, $params) = @_; | |
| 47 | 3 | $class->gateway->transparent_redirect->transaction_data($params); | |
| 48 | } | ||
| 49 | |||
| 50 | =head2 create_customer_data() | ||
| 51 | |||
| 52 | This takes a hashref of params and returns whatever create_customer_data() returns. | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | 2 | ▶ | sub create_customer_data { |
|
Subroutine
create_customer_data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 57 | 2 | my ($class, $params) = @_; | |
| 58 | 2 | $class->gateway->transparent_redirect->create_customer_data($params); | |
| 59 | } | ||
| 60 | |||
| 61 | =head2 update_customer_data() | ||
| 62 | |||
| 63 | This takes a hashref of params and returns whatever update_customer_data() returns. | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | 3 | ▶ | sub update_customer_data { |
|
Subroutine
update_customer_data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 68 | 3 | my ($class, $params) = @_; | |
| 69 | 3 | $class->gateway->transparent_redirect->update_customer_data($params); | |
| 70 | } | ||
| 71 | |||
| 72 | =head2 create_credit_card_data() | ||
| 73 | |||
| 74 | This takes a hashref of params and returns whatever create_credit_card_data() returns. | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 4 | ▶ | sub create_credit_card_data { |
|
Subroutine
create_credit_card_data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 79 | 4 | my ($class, $params) = @_; | |
| 80 | 4 | $class->gateway->transparent_redirect->create_credit_card_data($params); | |
| 81 | } | ||
| 82 | |||
| 83 | =head2 update_credit_card_data() | ||
| 84 | |||
| 85 | This takes a hashref of params and returns whatever update_credit_card_data() returns. | ||
| 86 | |||
| 87 | =cut | ||
| 88 | |||
| 89 | 3 | ▶ | sub update_credit_card_data { |
|
Subroutine
update_credit_card_data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 90 | 3 | my ($class, $params) = @_; | |
| 91 | 3 | $class->gateway->transparent_redirect->update_credit_card_data($params); | |
| 92 | } | ||
| 93 | |||
| 94 | =head2 url() | ||
| 95 | |||
| 96 | This takes no parameters and returns whatever url() returns. | ||
| 97 | |||
| 98 | =cut | ||
| 99 | |||
| 100 | 1 | ▶ | sub url { |
|
Subroutine
url: called CC=1 SCAR=0.0
Pod
documented
| |||
| 101 | 1 | my $class = shift; | |
| 102 | 1 | $class->gateway->transparent_redirect->url; | |
| 103 | } | ||
| 104 | |||
| 105 | 22 | __PACKAGE__->meta->make_immutable; | |
| 106 | |||
| 107 | 22 | 1; | |
| 108 | __END__ | ||