forked from pullingshots/Shipment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
99 lines (61 loc) · 2.3 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
SYNOPSIS
use Shipment;
my $shipment = Shipment->new;
$shipment->ups(
from_address => $shipment->address(...),
to_address => $shipment->address(...),
packages => [$shipment->package(...)]
);
foreach my $service ( $shipment->all_services ) {
print $service->id . "\n";
}
$shipment->rate( 'express' );
print $service->cost . "\n";
$shipment->ship( 'ground' );
$shipment->get_package(0)->label->save;
DESCRIPTION
This library provides an interface to popular shipping/courier
services.
See the relevant module for details on usage.
For code examples, see
https://github.com/pullingshots/Shipment/tree/master/eg
generic
The generic method returns a L<Shipment::Generic> object. See L<Shipment::Generic> for
more details.
canadapost
The fedex method returns a Shipment::CanadaPost object. See
Shipment::CanadaPost for more details.
fedex
The fedex method returns a Shipment::FedEx object. See
Shipment::FedEx for more details.
purolator
The purolator method returns a Shipment::Purolator object. See
Shipment::Purolator for more details.
ups
The ups method returns a Shipment::UPS object. See Shipment::UPS for
more details.
temando
The temando method returns a Shipment::Temando object. See
Shipment::Temando for more details.
address
The address method returns a Shipment::Address object. See
Shipment::Address for more details.
package
The package method returns a Shipment::Package object. See
Shipment::Package for more details.
AUTHOR
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
BUGS
Issues can be submitted at
https://github.com/pullingshots/Shipment/issues
COPYRIGHT
Copyright (C) 2016 Andrew J Baerg, All Rights Reserved
NO WARRANTY
Absolutely, positively NO WARRANTY, neither express or implied, is
offered with this software. You use this software at your own risk. In
case of loss, no person or entity owes you anything whatsoever. You
have been warned.
LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.