« Business/CyberSource/Response/Role/RequestDateTime.pm
↑ Summary
Business/CyberSource/ResponsePart/DCCReply.pm »
| 1 | package Business::CyberSource::ResponsePart::AuthReply; | ||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use Module::Runtime qw( use_module ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | our $VERSION = '0.010007'; # VERSION | |
| 8 | |||
| 9 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | extends 'Business::CyberSource::MessagePart'; | |
| 11 | 3 | with qw( | |
| 12 | Business::CyberSource::Response::Role::AuthCode | ||
| 13 | Business::CyberSource::Response::Role::ReconciliationID | ||
| 14 | Business::CyberSource::Response::Role::ReasonCode | ||
| 15 | Business::CyberSource::Response::Role::Amount | ||
| 16 | Business::CyberSource::Response::Role::ProcessorResponse | ||
| 17 | Business::CyberSource::Response::Role::ElectronicVerification | ||
| 18 | ); | ||
| 19 | |||
| 20 | 3 | use MooseX::Types::CyberSource qw( | |
| 21 | _VarcharTen | ||
| 22 | AVSResult | ||
| 23 | CvResults | ||
| 24 | DateTimeFromW3C | ||
| 25 | 3 | ▶ | ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | |||
| 28 | 3 | has auth_record => ( | |
| 29 | isa => 'Str', | ||
| 30 | remote_name => 'authRecord', | ||
| 31 | predicate => 'has_auth_record', | ||
| 32 | is => 'ro', | ||
| 33 | ); | ||
| 34 | |||
| 35 | 3 | has datetime => ( | |
| 36 | isa => DateTimeFromW3C, | ||
| 37 | remote_name => 'authorizedDateTime', | ||
| 38 | is => 'ro', | ||
| 39 | coerce => 1, | ||
| 40 | predicate => 'has_datetime', | ||
| 41 | ); | ||
| 42 | |||
| 43 | 3 | has cv_code => ( | |
| 44 | isa => CvResults, | ||
| 45 | remote_name => 'cvCode', | ||
| 46 | predicate => 'has_cv_code', | ||
| 47 | is => 'ro', | ||
| 48 | ); | ||
| 49 | |||
| 50 | 3 | has cv_code_raw => ( | |
| 51 | isa => _VarcharTen, | ||
| 52 | remote_name => 'cvCodeRaw', | ||
| 53 | predicate => 'has_cv_code_raw', | ||
| 54 | is => 'ro', | ||
| 55 | ); | ||
| 56 | |||
| 57 | 3 | has avs_code => ( | |
| 58 | isa => AVSResult, | ||
| 59 | remote_name => 'avsCode', | ||
| 60 | predicate => 'has_avs_code', | ||
| 61 | is => 'ro', | ||
| 62 | ); | ||
| 63 | |||
| 64 | 3 | has avs_code_raw => ( | |
| 65 | isa => _VarcharTen, | ||
| 66 | remote_name => 'avsCodeRaw', | ||
| 67 | predicate => 'has_avs_code_raw', | ||
| 68 | is => 'ro', | ||
| 69 | ); | ||
| 70 | |||
| 71 | 3 | __PACKAGE__->meta->make_immutable; | |
| 72 | 3 | 1; | |
| 73 | # ABSTRACT: Reply section for Authorizations | ||
| 74 | |||
| 75 | __END__ | ||
| 76 | |||
| 77 | =pod | ||
| 78 | |||
| 79 | =encoding UTF-8 | ||
| 80 | |||
| 81 | =head1 NAME | ||
| 82 | |||
| 83 | Business::CyberSource::ResponsePart::AuthReply - Reply section for Authorizations | ||
| 84 | |||
| 85 | =head1 VERSION | ||
| 86 | |||
| 87 | version 0.010007 | ||
| 88 | |||
| 89 | =head1 ATTRIBUTES | ||
| 90 | |||
| 91 | =head2 datetime | ||
| 92 | |||
| 93 | $response->auth->datetime if $response->auth->has_datetime; | ||
| 94 | |||
| 95 | B<Type:> L<DateTime> | ||
| 96 | |||
| 97 | Time of authorization. | ||
| 98 | |||
| 99 | =head2 avs_code | ||
| 100 | |||
| 101 | $response->auth->avs_code if $response->auth->has_avs_code; | ||
| 102 | |||
| 103 | B<Type:> Varying character 1 | ||
| 104 | |||
| 105 | =head2 avs_code_raw | ||
| 106 | |||
| 107 | $response->auth->avs_code_raw if $response->auth->has_avs_code_raw; | ||
| 108 | |||
| 109 | B<Type:> Varying character 10 | ||
| 110 | |||
| 111 | =head2 auth_record | ||
| 112 | |||
| 113 | $response->auth->auth_record if $response->auth->has_auth_record; | ||
| 114 | |||
| 115 | B<Type:> String | ||
| 116 | |||
| 117 | =head2 auth_code | ||
| 118 | |||
| 119 | $response->auth->auth_code if $response->auth->has_auth_code; | ||
| 120 | |||
| 121 | B<Type:> Varying character 7 | ||
| 122 | |||
| 123 | Authorization code. Returned only if a value is returned by the processor. | ||
| 124 | |||
| 125 | =head2 cv_code | ||
| 126 | |||
| 127 | $response->auth->cv_code if $response->auth->has_cv_code; | ||
| 128 | |||
| 129 | B<Type:> Single Char | ||
| 130 | |||
| 131 | =head2 cv_code_raw | ||
| 132 | |||
| 133 | $response->auth->cv_code_raw if $response->auth->has_cv_code_raw; | ||
| 134 | |||
| 135 | B<Type:> Varying character 10 | ||
| 136 | |||
| 137 | =head2 processor_response | ||
| 138 | |||
| 139 | $response->auth->processor_response | ||
| 140 | if $response->auth->has_processor_response; | ||
| 141 | |||
| 142 | Type: Varying character 10 | ||
| 143 | |||
| 144 | =head2 reconciliation_id | ||
| 145 | |||
| 146 | $response->auth->reconciliation_id | ||
| 147 | if $response->auth->has_reconciliation_id | ||
| 148 | |||
| 149 | Type: Int | ||
| 150 | |||
| 151 | =head1 BUGS | ||
| 152 | |||
| 153 | Please report any bugs or feature requests on the bugtracker website | ||
| 154 | https://github.com/xenoterracide/business-cybersource/issues | ||
| 155 | |||
| 156 | When submitting a bug or request, please include a test-file or a | ||
| 157 | patch to an existing test-file that illustrates the bug or desired | ||
| 158 | feature. | ||
| 159 | |||
| 160 | =head1 AUTHOR | ||
| 161 | |||
| 162 | Caleb Cushing <xenoterracide@gmail.com> | ||
| 163 | |||
| 164 | =head1 COPYRIGHT AND LICENSE | ||
| 165 | |||
| 166 | This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>. | ||
| 167 | |||
| 168 | This is free software, licensed under: | ||
| 169 | |||
| 170 | The Artistic License 2.0 (GPL Compatible) | ||
| 171 | |||
| 172 | =cut | ||