File Coverage

lib/WebService/Shippo/Transactions.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1 7     7   36 use strict;
  7         14  
  7         206  
2 7     7   36 use warnings;
  7         14  
  7         272  
3 7     7   34 use MRO::Compat 'c3';
  7         15  
  7         331  
4              
5             package WebService::Shippo::Transactions;
6             require WebService::Shippo::Transaction;
7 7         1059 use base qw(
8             WebService::Shippo::Collection
9             WebService::Shippo::Create
10             WebService::Shippo::Fetch
11 7     7   37 );
  7         12  
12              
13             sub item_class () { 'WebService::Shippo::Transaction' }
14              
15             sub collection_class () { __PACKAGE__ }
16              
17             BEGIN {
18 7     7   40 no warnings 'once';
  7         14  
  7         263  
19 7     7   198 *Shippo::Transactions:: = *WebService::Shippo::Transactions::;
20             }
21              
22             1;
23              
24             =pod
25              
26             =encoding utf8
27              
28             =head1 NAME
29              
30             WebService::Shippo::Transaction - Transaction collection class
31              
32             =head1 VERSION
33              
34             version 0.0.21
35              
36             =head1 DESCRIPTION
37              
38             A Transaction is the purchase of a shipment label for a given shipment
39             rate. Transactions can be as simple as posting a rate identifier, but
40             also allow you to define further label parameters, such as pickup and
41             notifications.
42              
43             Transactions can only be created for rates that are less than 7 days
44             old and whose C attribute is B.
45              
46             Transactions are created asynchronously. The response time depends
47             exclusively on the carrier's server.
48              
49             =head1 API DOCUMENTATION
50              
51             For more information about Transactions, consult the Shippo API
52             documentation:
53              
54             =over 2
55              
56             =item * L
57              
58             =back
59              
60             =head1 REPOSITORY
61              
62             =over 2
63              
64             =item * L
65              
66             =item * L
67              
68             =back
69              
70             =head1 AUTHOR
71              
72             Iain Campbell
73              
74             =head1 COPYRIGHT AND LICENSE
75              
76             This software is copyright (c) 2015 by Iain Campbell.
77              
78             You may distribute this software under the terms of either the GNU General
79             Public License or the Artistic License, as specified in the Perl README
80             file.
81              
82             =cut