File Coverage

blib/lib/Business/OnlinePayment/Iridium/Action/GetCardType.pm
Criterion Covered Total %
statement 3 5 60.0
branch n/a
condition n/a
subroutine 1 3 33.3
pod 1 1 100.0
total 5 9 55.5


line stmt bran cond sub pod time code
1             package Business::OnlinePayment::Iridium::Action::GetCardType;
2              
3 1     1   758 use Moose;
  1         2  
  1         8  
4              
5             with 'Business::OnlinePayment::Iridium::Action';
6              
7             # PODNAME: Business::OnlinePayment::Iridium::Action::GetCardType
8             # ABSTRACT: Query PayVector for card type (they do their best):w
9              
10             has 'CardNumber' => (
11             isa => 'Str',
12             is => 'rw', required => '1'
13             );
14              
15 0     0     sub _build__type { return 'GetCardType' }
16              
17              
18             sub template {
19 0     0 1   return <<DATA;
20             <?xml version="1.0" encoding="utf-8"?>
21             <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
23             xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
24             <soap:Body>
25             <GetCardType xmlns="https://www.thepaymentgateway.net/">
26             <GetCardTypeMessage>
27             <MerchantAuthentication MerchantID="[% MerchantID %]" Password="[% Password %]" />
28             <CardNumber>[% CardNumber %]</CardNumber>
29             </GetCardTypeMessage>
30             </GetCardType>
31             </soap:Body>
32             </soap:Envelope>
33             DATA
34             }
35              
36             1;
37              
38             __END__
39              
40             =pod
41              
42             =encoding UTF-8
43              
44             =head1 NAME
45              
46             Business::OnlinePayment::Iridium::Action::GetCardType - Query PayVector for card type (they do their best):w
47              
48             =head1 VERSION
49              
50             version 1.01
51              
52             =head2 template
53              
54             SOAP template to use to send to PayVector / Iridium
55              
56             =head1 AUTHOR
57              
58             [ 'Gavin Henry <ghenry@surevoip.co.uk>', 'Wallace Reis <reis.wallace@gmail.com>' ]
59              
60             =head1 COPYRIGHT AND LICENSE
61              
62             This software is copyright (c) 2017 by [ 'Gavin Henry', 'Wallace Reis' ].
63              
64             This is free software; you can redistribute it and/or modify it under
65             the same terms as the Perl 5 programming language system itself.
66              
67             =cut