« 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.010007'; # 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 | serializer => sub { | ||
| 23 | 1 | ▶ | my ( $attr, $instance ) = @_; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 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__ | ||
| 33 | |||
| 34 | =pod | ||
| 35 | |||
| 36 | =encoding UTF-8 | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | Business::CyberSource::Request::Role::DCC - Role for DCC follow up requests | ||
| 41 | |||
| 42 | =head1 VERSION | ||
| 43 | |||
| 44 | version 0.010007 | ||
| 45 | |||
| 46 | =head1 DESCRIPTION | ||
| 47 | |||
| 48 | =head1 WITH | ||
| 49 | |||
| 50 | =over | ||
| 51 | |||
| 52 | =item L<Business::CyberSource::Role::ForeignCurrency> | ||
| 53 | |||
| 54 | =back | ||
| 55 | |||
| 56 | =head1 ATTRIBUTES | ||
| 57 | |||
| 58 | =head2 dcc_indicator | ||
| 59 | |||
| 60 | Flag that indicates whether DCC is being used for the transaction. | ||
| 61 | |||
| 62 | This field is required if you called the DCC service for the purchase. | ||
| 63 | |||
| 64 | Possible values: | ||
| 65 | |||
| 66 | =over | ||
| 67 | |||
| 68 | =item 1: Converted | ||
| 69 | |||
| 70 | DCC is being used. | ||
| 71 | |||
| 72 | =item 2: Nonconvertible | ||
| 73 | |||
| 74 | DCC cannot be used. | ||
| 75 | |||
| 76 | =item 3: Declined | ||
| 77 | |||
| 78 | DCC could be used, but the customer declined it. | ||
| 79 | |||
| 80 | =back | ||
| 81 | |||
| 82 | =head1 BUGS | ||
| 83 | |||
| 84 | Please report any bugs or feature requests on the bugtracker website | ||
| 85 | https://github.com/xenoterracide/business-cybersource/issues | ||
| 86 | |||
| 87 | When submitting a bug or request, please include a test-file or a | ||
| 88 | patch to an existing test-file that illustrates the bug or desired | ||
| 89 | feature. | ||
| 90 | |||
| 91 | =head1 AUTHOR | ||
| 92 | |||
| 93 | Caleb Cushing <xenoterracide@gmail.com> | ||
| 94 | |||
| 95 | =head1 COPYRIGHT AND LICENSE | ||
| 96 | |||
| 97 | This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>. | ||
| 98 | |||
| 99 | This is free software, licensed under: | ||
| 100 | |||
| 101 | The Artistic License 2.0 (GPL Compatible) | ||
| 102 | |||
| 103 | =cut | ||