| 1 | package Business::Giropay::Response::Transaction; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Business::Giropay::Response::Transaction - response object for L<Business::Giropay::Request::Transaction> | ||
| 6 | |||
| 7 | =cut | ||
| 8 | |||
| 9 | 1 | ▶ | use Business::Giropay::Types qw/Map Maybe Str/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | with 'Business::Giropay::Role::Response'; | |
| 12 | 1 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | =head1 ATTRIBUTES | ||
| 15 | |||
| 16 | See L<Business::Giropay::Role::Response/ATTRIBUTES> for attributes common to | ||
| 17 | all request classes. | ||
| 18 | |||
| 19 | =head2 reference | ||
| 20 | |||
| 21 | Unique transaction ID from GiroCheckout. | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | 1 | has reference => ( | |
| 26 | is => 'lazy', | ||
| 27 | isa => Maybe [Str], | ||
| 28 | init_arg => undef, | ||
| 29 | ); | ||
| 30 | |||
| 31 | 2 | ▶ | sub _build_reference { |
|
Subroutine
_build_reference: called CC=1 SCAR=0.0
| |||
| 32 | 2 | shift->data->{reference}; | |
| 33 | } | ||
| 34 | |||
| 35 | =head2 redirect | ||
| 36 | |||
| 37 | Redirect URL to redirect the client to complete Online Banking transaction. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 1 | has redirect => ( | |
| 42 | is => 'lazy', | ||
| 43 | isa => Maybe [Str], | ||
| 44 | init_arg => undef, | ||
| 45 | ); | ||
| 46 | |||
| 47 | 2 | ▶ | sub _build_redirect { |
|
Subroutine
_build_redirect: called CC=1 SCAR=0.0
| |||
| 48 | 2 | shift->data->{redirect}; | |
| 49 | } | ||
| 50 | |||
| 51 | =head1 METHODS | ||
| 52 | |||
| 53 | See L<Business::Giropay::Role::Response/METHODS>. | ||
| 54 | |||
| 55 | =cut | ||
| 56 | |||
| 57 | 1 | 1; | |