« Business/CyberSource/RequestPart/Item.pm
↑ Summary
Business/CyberSource/RequestPart/Service/Auth.pm »
| 1 | package Business::CyberSource::RequestPart::PurchaseTotals; | ||
| 2 | 9 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 9 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 9 | our $VERSION = '0.010008'; # VERSION | |
| 7 | |||
| 8 | 9 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 9 | extends 'Business::CyberSource::MessagePart'; | |
| 10 | 9 | with 'MooseX::RemoteHelper::CompositeSerialization'; | |
| 11 | |||
| 12 | 9 | with qw( | |
| 13 | Business::CyberSource::Role::Currency | ||
| 14 | Business::CyberSource::Role::ForeignCurrency | ||
| 15 | ); | ||
| 16 | |||
| 17 | 9 | ▶ | use MooseX::Types::Common::Numeric qw( PositiveOrZeroNum ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 9 | has total => ( | |
| 20 | isa => PositiveOrZeroNum, | ||
| 21 | remote_name => 'grandTotalAmount', | ||
| 22 | traits => [ 'SetOnce' ], | ||
| 23 | is => 'rw', | ||
| 24 | predicate => 'has_total', | ||
| 25 | |||
| 26 | ); | ||
| 27 | |||
| 28 | 9 | has discount => ( | |
| 29 | isa => PositiveOrZeroNum, | ||
| 30 | remote_name => 'discountAmount', | ||
| 31 | traits => ['SetOnce'], | ||
| 32 | is => 'rw', | ||
| 33 | predicate => 'has_discount', | ||
| 34 | |||
| 35 | ); | ||
| 36 | |||
| 37 | 9 | has duty => ( | |
| 38 | isa => PositiveOrZeroNum, | ||
| 39 | remote_name => 'dutyAmount', | ||
| 40 | traits => ['SetOnce'], | ||
| 41 | is => 'rw', | ||
| 42 | predicate => 'has_duty', | ||
| 43 | |||
| 44 | ); | ||
| 45 | |||
| 46 | 9 | __PACKAGE__->meta->make_immutable; | |
| 47 | 9 | 1; | |
| 48 | # ABSTRACT: Purchase Totals | ||
| 49 | |||
| 50 | __END__ | ||