Permalink
Browse files

Merge pull request #15 from rustyconover/master

Add costs to information extracted when building services for Fedex
  • Loading branch information...
2 parents df158b1 + f1adf9c commit c237947102f9964807ca1217f86810ab707bb077 @pullingshots committed May 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Shipment/FedEx.pm
View
@@ -331,6 +331,10 @@ sub _build_services {
id => 'YOUR_PACKAGING',
name => 'Customer Supplied',
),
+ cost => Data::Currency->new(
+ $service->get_RatedShipmentDetails->[0]->get_ShipmentRateDetail->get_TotalNetCharge->get_Amount,
+ $service->get_RatedShipmentDetails->[0]->get_ShipmentRateDetail->get_TotalNetCharge->get_Currency
+ ),
);
}
$services{ground} = $services{'FEDEX_GROUND'} || $services{'GROUND_HOME_DELIVERY'} || $services{'INTERNATIONAL_GROUND'} || Shipment::Service->new();

0 comments on commit c237947

Please sign in to comment.