« Business/CyberSource/RequestPart/ShipFrom.pm
↑ Summary
Business/CyberSource/Response/Role/Amount.pm »
| 1 | package Business::CyberSource::Response; | ||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use Module::Load 'load'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | our $VERSION = '0.010008'; # VERSION | |
| 8 | |||
| 9 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | extends 'Business::CyberSource::Message'; | |
| 11 | 4 | with qw( | |
| 12 | Business::CyberSource::Response::Role::Base | ||
| 13 | ); | ||
| 14 | |||
| 15 | 4 | ▶ | use MooseX::Types::CyberSource qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | ResPurchaseTotals | ||
| 17 | AuthReply | ||
| 18 | Reply | ||
| 19 | TaxReply | ||
| 20 | DCCReply | ||
| 21 | 4 | ); | |
| 22 | |||
| 23 | 4 | has '+reference_code' => ( required => 0 ); | |
| 24 | |||
| 25 | 4 | has purchase_totals => ( | |
| 26 | isa => ResPurchaseTotals, | ||
| 27 | remote_name => 'purchaseTotals', | ||
| 28 | is => 'ro', | ||
| 29 | predicate => 'has_purchase_totals', | ||
| 30 | coerce => 1, | ||
| 31 | handles => [ qw( currency ) ], | ||
| 32 | ); | ||
| 33 | |||
| 34 | |||
| 35 | 4 | has auth => ( | |
| 36 | isa => AuthReply, | ||
| 37 | remote_name => 'ccAuthReply', | ||
| 38 | is => 'ro', | ||
| 39 | predicate => 'has_auth', | ||
| 40 | coerce => 1, | ||
| 41 | ); | ||
| 42 | |||
| 43 | 4 | has capture => ( | |
| 44 | isa => Reply, | ||
| 45 | remote_name => 'ccCaptureReply', | ||
| 46 | is => 'ro', | ||
| 47 | predicate => 'has_capture', | ||
| 48 | coerce => 1, | ||
| 49 | ); | ||
| 50 | |||
| 51 | 4 | has credit => ( | |
| 52 | isa => Reply, | ||
| 53 | remote_name => 'ccCreditReply', | ||
| 54 | is => 'ro', | ||
| 55 | predicate => 'has_credit', | ||
| 56 | coerce => 1, | ||
| 57 | ); | ||
| 58 | |||
| 59 | 4 | has auth_reversal=> ( | |
| 60 | isa => Reply, | ||
| 61 | remote_name => 'ccAuthReversalReply', | ||
| 62 | is => 'ro', | ||
| 63 | predicate => 'has_auth_reversal', | ||
| 64 | coerce => 1, | ||
| 65 | ); | ||
| 66 | |||
| 67 | 4 | has dcc => ( | |
| 68 | isa => DCCReply, | ||
| 69 | remote_name => 'ccDCCReply', | ||
| 70 | is => 'ro', | ||
| 71 | predicate => 'has_dcc', | ||
| 72 | coerce => 1, | ||
| 73 | ); | ||
| 74 | |||
| 75 | 4 | has tax => ( | |
| 76 | isa => TaxReply, | ||
| 77 | remote_name => 'taxReply', | ||
| 78 | is => 'ro', | ||
| 79 | predicate => 'has_tax', | ||
| 80 | coerce => 1, | ||
| 81 | ); | ||
| 82 | |||
| 83 | 4 | __PACKAGE__->meta->make_immutable; | |
| 84 | 4 | 1; | |
| 85 | |||
| 86 | # ABSTRACT: Response Object | ||
| 87 | |||
| 88 | __END__ | ||