| 1 | package Business::PaperlessTrans::Request::Role::Money; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.002000'; # VERSION | |
| 7 | |||
| 8 | 2 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use MooseX::RemoteHelper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use MooseX::Types::Common::Numeric qw( PositiveOrZeroNum ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 2 | ▶ | use MooseX::Types::Locale::Currency qw( CurrencyCode ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 2 | has amount => ( | |
| 14 | remote_name => 'Amount', | ||
| 15 | isa => PositiveOrZeroNum, | ||
| 16 | is => 'ro', | ||
| 17 | required => 1, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 2 | has currency => ( | |
| 21 | remote_name => 'Currency', | ||
| 22 | isa => CurrencyCode, | ||
| 23 | is => 'ro', | ||
| 24 | required => 1, | ||
| 25 | ); | ||
| 26 | |||
| 27 | 2 | 1; | |
| 28 | # ABSTRACT: Money Attributes | ||
| 29 | |||
| 30 | __END__ | ||