Business/CyberSource/Request/Role/DCC.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Business/CyberSource/Request/Role/CreditCardInfo.pm ↑ Summary Business/CyberSource/Request/Role/TaxService.pm »
1 package Business::CyberSource::Request::Role::DCC;
2 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 our $VERSION = '0.010008'; # VERSION
7  
8 12 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 12 ▶use MooseX::RemoteHelper;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 12 ▶use MooseX::SetOnce 0.200001;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 12 with 'Business::CyberSource::Role::ForeignCurrency';
13  
14 12 ▶use MooseX::Types::CyberSource qw( DCCIndicator );
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 has dcc_indicator => (
17 isa => DCCIndicator,
18 remote_name => 'dcc',
19 predicate => 'has_dcc_indicator',
20 traits => [ 'SetOnce' ],
21 is => 'rw',
22 1 ▶ serializer => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
23 1 my ( $attr, $instance ) = @_;
24 1 return { dccIndicator => $attr->get_value( $instance ) };
25 },
26 12 );
27  
28 12 1;
29  
30 # ABSTRACT: Role for DCC follow up requests
31  
32 __END__
« Business/CyberSource/Request/Role/CreditCardInfo.pm ↑ Summary Business/CyberSource/Request/Role/TaxService.pm »