| 1 | package Business::PaperlessTrans::Response; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use namespace::autoclean; | ||
| 5 | |||
| 6 | our $VERSION = '0.002000'; # VERSION | ||
| 7 | |||
| 8 | use Moose; | ||
| 9 | extends 'MooseY::RemoteHelper::MessagePart'; | ||
| 10 | |||
| 11 | use MooseX::Types::Common::String qw( SimpleStr ); | ||
| 12 | use Moose::Util::TypeConstraints qw( enum ); | ||
| 13 | use MooseX::Types::UUID qw( UUID ); | ||
| 14 | |||
| 15 | has transaction_id => ( | ||
| 16 | remote_name => 'TransactionID', | ||
| 17 | isa => UUID|SimpleStr, | ||
| 18 | is => 'ro', | ||
| 19 | ); | ||
| 20 | |||
| 21 | has code => ( | ||
| 22 | remote_name => 'ResponseCode', | ||
| 23 | isa => enum( [qw( 0 1 2 )] ), | ||
| 24 | is => 'ro', | ||
| 25 | ); | ||
| 26 | |||
| 27 | has message => ( | ||
| 28 | remote_name => 'Message', | ||
| 29 | isa => SimpleStr, | ||
| 30 | is => 'ro', | ||
| 31 | ); | ||
| 32 | |||
| 33 | has timestamp => ( | ||
| 34 | remote_name => 'DateTimeStamp', | ||
| 35 | isa => SimpleStr, | ||
| 36 | is => 'ro', | ||
| 37 | ); | ||
| 38 | |||
| 39 | __PACKAGE__->meta->make_immutable; | ||
| 40 | 1; | ||
| 41 | # ABSTRACT: Base Response | ||
| 42 | |||
| 43 | __END__ |