binarylogic-shippinglogic 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Attributes" do
4
+ it "should allow setting attributes upon initialization" do
5
+ tracking = new_fedex.track(:tracking_number => fedex_tracking_number)
6
+ tracking.tracking_number.should == fedex_tracking_number
7
+ end
8
+
9
+ it "should allow setting attributes individually" do
10
+ tracking = new_fedex.track
11
+ tracking.tracking_number = fedex_tracking_number
12
+ tracking.tracking_number.should == fedex_tracking_number
13
+ end
14
+
15
+ it "should allow setting attributes with a hash" do
16
+ tracking = new_fedex.track
17
+ tracking.attributes = {:tracking_number => fedex_tracking_number}
18
+ tracking.tracking_number.should == fedex_tracking_number
19
+ end
20
+
21
+ it "should allow reading attributes" do
22
+ tracking = new_fedex.track
23
+ tracking.attributes = {:tracking_number => fedex_tracking_number}
24
+ tracking.attributes.should == {:tracking_number => fedex_tracking_number}
25
+ end
26
+
27
+ it "should implement defaults" do
28
+ rates = new_fedex.rates
29
+ rates.shipper_residential.should == false
30
+ end
31
+
32
+ it "should use blank array as defaults for arrays" do
33
+ rates = new_fedex.rates
34
+ rates.packages.should == []
35
+ end
36
+
37
+ it "should call procs during run time if a default is a proc" do
38
+ rates = new_fedex.rates
39
+ rates.ship_time.to_s.should == Time.now.to_s
40
+ end
41
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Error" do
4
+ it "should handle blank response errors" do
5
+ use_response(:blank)
6
+ lambda { new_fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error, "The response from FedEx was blank.")
7
+ end
8
+
9
+ it "should pass through malformed errors" do
10
+ use_response(:malformed, :content_type => "")
11
+ lambda { new_fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error, "The response from FedEx was malformed and was not in a valid XML format.")
12
+ end
13
+
14
+ it "should pass through authentication errors" do
15
+ use_response(:failed_authentication)
16
+ fedex = Shippinglogic::FedEx.new("", "", "", "")
17
+ lambda { fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error, "Authentication Failed")
18
+ end
19
+
20
+ it "should pass through unexpected errors" do
21
+ use_response(:unexpected)
22
+ lambda { new_fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error, "There was a problem with your fedex request, and " +
23
+ "we couldn't locate a specific error message. This means your response was in an unexpected format. You might try glancing at the raw response " +
24
+ "by using the 'response' method on this error object.")
25
+ end
26
+ end
@@ -0,0 +1,22 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Rate" do
4
+ it "should rate the shipment" do
5
+ use_response(:basic_rate)
6
+
7
+ fedex = new_fedex
8
+ rates = fedex.rates
9
+ rates.attributes = fedex_shipper
10
+ rates.attributes = fedex_recipient
11
+ rates.packages = [fedex_package]
12
+ rates.size.should == 6
13
+
14
+ rate = rates.first
15
+ rate.name.should == "First Overnight"
16
+ rate.type.should == "FIRST_OVERNIGHT"
17
+ rate.saturday.should == false
18
+ rate.deadline.should == Time.parse("Fri Aug 07 08:00:00 -0400 2009")
19
+ rate.cost.should == BigDecimal("70.01")
20
+ rate.currency.should == "USD"
21
+ end
22
+ end
@@ -0,0 +1,14 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Service" do
4
+ it "should not hit fedex until needed" do
5
+ # If fedex was hit we would get an exception before the response is blank
6
+ use_response(:blank)
7
+ lambda { new_fedex.track(:tracking_number => fedex_tracking_number) }.should_not raise_error
8
+ end
9
+
10
+ it "should hit fedex when needed" do
11
+ use_response(:blank)
12
+ lambda { new_fedex.track(:tracking_number => fedex_tracking_number).size }.should raise_error(Shippinglogic::FedEx::Error)
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Track" do
4
+ it "should track the package" do
5
+ use_response(:basic_track)
6
+ fedex = new_fedex
7
+ events = fedex.track(:tracking_number => fedex_tracking_number)
8
+
9
+ events.size.should == 7
10
+ event = events.first
11
+ event.name.should == "Delivered"
12
+ event.type.should == "DL"
13
+ event.occured_at.should == Time.parse("Mon Dec 08 10:43:37 -0500 2008")
14
+ event.city.should == "Sacramento"
15
+ event.state.should == "CA"
16
+ event.postal_code.should == "95817"
17
+ event.country.should == "US"
18
+ event.residential.should == false
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "FedEx Validation" do
4
+ it "should not be valid" do
5
+ use_response(:blank)
6
+ rates = new_fedex.rates
7
+ rates.valid?.should == false
8
+ rates.errors.should == ["The response from FedEx was blank."]
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ key: your key
2
+ password: your password
3
+ account: your account number
4
+ meter: your meter number
@@ -0,0 +1,11 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "FedEx" do
4
+ it "should return the default options" do
5
+ Shippinglogic::FedEx.options.should == {
6
+ :test => true,
7
+ :production_url => "https://gateway.fedex.com:443/xml",
8
+ :test_url => "https://gatewaybeta.fedex.com:443/xml"
9
+ }
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ module HTTParty
2
+ class Request
3
+ def perform_actual_request
4
+ response = http.request(@raw_request)
5
+ if !FakeWeb.registered_uri?(:post, uri)
6
+ File.open(File.dirname(__FILE__) + "/../responses/_new.xml", 'w') {|f| f.write(response.body) }
7
+ raise FakeWeb::NetConnectNotAllowedError.new("You have not registered this response, the response has been put in responses/_new.xml")
8
+ else
9
+ response
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v6:RateReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:v6="http://fedex.com/ws/rate/v6"><v6:HighestSeverity>NOTE</v6:HighestSeverity><v6:Notifications><v6:Severity>NOTE</v6:Severity><v6:Source>crs</v6:Source><v6:Code>765</v6:Code><v6:Message>FedEx Home Delivery Saturday service is not available to destination zip code. </v6:Message><v6:LocalizedMessage>FedEx Home Delivery Saturday service is not available to destination zip code. </v6:LocalizedMessage></v6:Notifications><v6:Notifications><v6:Severity>NOTE</v6:Severity><v6:Source>crs</v6:Source><v6:Code>767</v6:Code><v6:Message>FedEx Home Delivery premium services are not available to this destination.</v6:Message><v6:LocalizedMessage>FedEx Home Delivery premium services are not available to this destination.</v6:LocalizedMessage></v6:Notifications><v6:Version>
3
+ <v6:ServiceId>crs</v6:ServiceId>
4
+ <v6:Major>6</v6:Major>
5
+ <v6:Intermediate>0</v6:Intermediate>
6
+ <v6:Minor>0</v6:Minor>
7
+ </v6:Version><v6:RateReplyDetails><v6:ServiceType>FIRST_OVERNIGHT</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:DeliveryDayOfWeek>FRI</v6:DeliveryDayOfWeek><v6:DeliveryTimestamp>2009-08-07T08:00:00</v6:DeliveryTimestamp><v6:CommitDetails><v6:ServiceType>FIRST_OVERNIGHT</v6:ServiceType><v6:CommitTimestamp>2009-08-07T08:00:00</v6:CommitTimestamp><v6:DayOfWeek>FRI</v6:DayOfWeek><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateScale>14</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RateScale>14</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>68.3</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>70.01</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>1.71</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails><v6:RateReplyDetails><v6:ServiceType>PRIORITY_OVERNIGHT</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:DeliveryDayOfWeek>FRI</v6:DeliveryDayOfWeek><v6:DeliveryTimestamp>2009-08-07T10:30:00</v6:DeliveryTimestamp><v6:CommitDetails><v6:ServiceType>PRIORITY_OVERNIGHT</v6:ServiceType><v6:CommitTimestamp>2009-08-07T10:30:00</v6:CommitTimestamp><v6:DayOfWeek>FRI</v6:DayOfWeek><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateScale>1</v6:RateScale><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RateScale>1</v6:RateScale><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>25.5</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>26.14</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.64</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails><v6:RateReplyDetails><v6:ServiceType>STANDARD_OVERNIGHT</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:DeliveryDayOfWeek>FRI</v6:DeliveryDayOfWeek><v6:DeliveryTimestamp>2009-08-07T15:00:00</v6:DeliveryTimestamp><v6:CommitDetails><v6:ServiceType>STANDARD_OVERNIGHT</v6:ServiceType><v6:CommitTimestamp>2009-08-07T15:00:00</v6:CommitTimestamp><v6:DayOfWeek>FRI</v6:DayOfWeek><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateScale>1371</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RateScale>1371</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>38.35</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>39.31</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.96</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails><v6:RateReplyDetails><v6:ServiceType>FEDEX_2_DAY</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:DeliveryDayOfWeek>MON</v6:DeliveryDayOfWeek><v6:DeliveryTimestamp>2009-08-10T16:30:00</v6:DeliveryTimestamp><v6:CommitDetails><v6:ServiceType>FEDEX_2_DAY</v6:ServiceType><v6:CommitTimestamp>2009-08-10T16:30:00</v6:CommitTimestamp><v6:DayOfWeek>MON</v6:DayOfWeek><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateScale>6068</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RateScale>6068</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>16.6</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>17.02</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.42</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails><v6:RateReplyDetails><v6:ServiceType>FEDEX_EXPRESS_SAVER</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:DeliveryDayOfWeek>TUE</v6:DeliveryDayOfWeek><v6:DeliveryTimestamp>2009-08-11T16:30:00</v6:DeliveryTimestamp><v6:CommitDetails><v6:ServiceType>FEDEX_EXPRESS_SAVER</v6:ServiceType><v6:CommitTimestamp>2009-08-11T16:30:00</v6:CommitTimestamp><v6:DayOfWeek>TUE</v6:DayOfWeek><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateScale>7175</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RateScale>7175</v6:RateScale><v6:RateZone>6</v6:RateZone><v6:PricingCode>PACKAGE</v6:PricingCode><v6:DimDivisor>194</v6:DimDivisor><v6:FuelSurchargePercent>2.5</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>RATED_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>12.2</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>12.51</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Description>Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails><v6:RateReplyDetails><v6:ServiceType>FEDEX_GROUND</v6:ServiceType><v6:PackagingType>YOUR_PACKAGING</v6:PackagingType><v6:DeliveryStation>RBDA </v6:DeliveryStation><v6:CommitDetails><v6:ServiceType>FEDEX_GROUND</v6:ServiceType><v6:TransitTime>THREE_DAYS</v6:TransitTime><v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays></v6:CommitDetails><v6:DestinationAirportId>DFW</v6:DestinationAirportId><v6:IneligibleForMoneyBackGuarantee>false</v6:IneligibleForMoneyBackGuarantee><v6:OriginServiceArea>A1</v6:OriginServiceArea><v6:DestinationServiceArea>A1</v6:DestinationServiceArea><v6:TransitTime>THREE_DAYS</v6:TransitTime><v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption><v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType><v6:RatedShipmentDetails><v6:ShipmentRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RateZone>6</v6:RateZone><v6:DimDivisor>0</v6:DimDivisor><v6:FuelSurchargePercent>5.25</v6:FuelSurchargePercent><v6:TotalBillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:TotalBillingWeight><v6:TotalBaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>5.88</v6:Amount></v6:TotalBaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:TotalNetFreight><v6:Currency>USD</v6:Currency><v6:Amount>5.88</v6:Amount></v6:TotalNetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:TotalNetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>6.19</v6:Amount></v6:TotalNetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:TotalNetCharge><v6:Currency>USD</v6:Currency><v6:Amount>6.19</v6:Amount></v6:TotalNetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Level>PACKAGE</v6:Level><v6:Description>FedEx Ground Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:ShipmentRateDetail><v6:RatedPackages><v6:PackageRateDetail><v6:RateType>PAYOR_ACCOUNT</v6:RateType><v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod><v6:BillingWeight><v6:Units>LB</v6:Units><v6:Value>2.0</v6:Value></v6:BillingWeight><v6:BaseCharge><v6:Currency>USD</v6:Currency><v6:Amount>5.88</v6:Amount></v6:BaseCharge><v6:TotalFreightDiscounts><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalFreightDiscounts><v6:NetFreight><v6:Currency>USD</v6:Currency><v6:Amount>5.88</v6:Amount></v6:NetFreight><v6:TotalSurcharges><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:TotalSurcharges><v6:NetFedExCharge><v6:Currency>USD</v6:Currency><v6:Amount>6.19</v6:Amount></v6:NetFedExCharge><v6:TotalTaxes><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalTaxes><v6:NetCharge><v6:Currency>USD</v6:Currency><v6:Amount>6.19</v6:Amount></v6:NetCharge><v6:TotalRebates><v6:Currency>USD</v6:Currency><v6:Amount>0.0</v6:Amount></v6:TotalRebates><v6:Surcharges><v6:SurchargeType>FUEL</v6:SurchargeType><v6:Level>PACKAGE</v6:Level><v6:Description>FedEx Ground Fuel</v6:Description><v6:Amount><v6:Currency>USD</v6:Currency><v6:Amount>0.31</v6:Amount></v6:Amount></v6:Surcharges></v6:PackageRateDetail></v6:RatedPackages></v6:RatedShipmentDetails></v6:RateReplyDetails></v6:RateReply>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v3:TrackReply xmlns:v3="http://fedex.com/ws/track/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><v3:HighestSeverity>SUCCESS</v3:HighestSeverity><v3:Notifications><v3:Severity>SUCCESS</v3:Severity><v3:Source>trck</v3:Source><v3:Code>0</v3:Code><v3:Message>Request was successfully processed.</v3:Message><v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage></v3:Notifications><v3:Version>
3
+ <v3:ServiceId>trck</v3:ServiceId>
4
+ <v3:Major>3</v3:Major>
5
+ <v3:Intermediate>0</v3:Intermediate>
6
+ <v3:Minor>0</v3:Minor>
7
+ </v3:Version><v3:DuplicateWaybill>false</v3:DuplicateWaybill><v3:MoreData>false</v3:MoreData><v3:TrackDetails><v3:TrackingNumber>077973360403984</v3:TrackingNumber><v3:TrackingNumberUniqueIdentifier>120081203121125584000~077973360403984</v3:TrackingNumberUniqueIdentifier><v3:StatusCode>DL</v3:StatusCode><v3:StatusDescription>Delivered</v3:StatusDescription><v3:CarrierCode>FDXG</v3:CarrierCode><v3:OtherIdentifiers><v3:Value>355200</v3:Value><v3:Type>CUSTOMER_REFERENCE</v3:Type></v3:OtherIdentifiers><v3:OtherIdentifiers><v3:Value>355200</v3:Value><v3:Type>INVOICE</v3:Type></v3:OtherIdentifiers><v3:ServiceInfo>Ground-Domestic</v3:ServiceInfo><v3:ServiceType>FEDEX_GROUND</v3:ServiceType><v3:PackageWeight><v3:Units>LB</v3:Units><v3:Value>10.0</v3:Value></v3:PackageWeight><v3:Packaging>Package</v3:Packaging><v3:PackageSequenceNumber>1</v3:PackageSequenceNumber><v3:PackageCount>1</v3:PackageCount><v3:OriginLocationAddress><v3:City>NASHVILLE</v3:City><v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:OriginLocationAddress><v3:ShipTimestamp>2008-12-03T00:00:00</v3:ShipTimestamp><v3:DestinationAddress><v3:City>Sacramento</v3:City><v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:DestinationAddress><v3:ActualDeliveryTimestamp>2008-12-08T07:43:37-08:00</v3:ActualDeliveryTimestamp><v3:ActualDeliveryAddress><v3:City>Sacramento</v3:City><v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:ActualDeliveryAddress><v3:DeliveryLocationType>OTHER</v3:DeliveryLocationType><v3:DeliverySignatureName>KKING</v3:DeliverySignatureName><v3:SignatureProofOfDeliveryAvailable>true</v3:SignatureProofOfDeliveryAvailable><v3:ProofOfDeliveryNotificationsAvailable>false</v3:ProofOfDeliveryNotificationsAvailable><v3:ExceptionNotificationsAvailable>false</v3:ExceptionNotificationsAvailable><v3:Events><v3:Timestamp>2008-12-08T07:43:37-08:00</v3:Timestamp><v3:EventType>DL</v3:EventType><v3:EventDescription>Delivered</v3:EventDescription><v3:Address><v3:City>Sacramento</v3:City><v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode><v3:PostalCode>95817</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-08T05:00:00-08:00</v3:Timestamp><v3:EventType>OD</v3:EventType><v3:EventDescription>On FedEx vehicle for delivery</v3:EventDescription><v3:Address><v3:City>SACRAMENTO</v3:City><v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode><v3:PostalCode>95824</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-07T10:48:00-08:00</v3:Timestamp><v3:EventType>AR</v3:EventType><v3:EventDescription>Arrived at FedEx location</v3:EventDescription><v3:Address><v3:City>SACRAMENTO</v3:City><v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode><v3:PostalCode>95824</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-04T05:58:46-06:00</v3:Timestamp><v3:EventType>DP</v3:EventType><v3:EventDescription>Departed FedEx location</v3:EventDescription><v3:Address><v3:City>NASHVILLE</v3:City><v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode><v3:PostalCode>37207</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-03T18:22:00-06:00</v3:Timestamp><v3:EventType>AR</v3:EventType><v3:EventDescription>Arrived at FedEx location</v3:EventDescription><v3:Address><v3:City>NASHVILLE</v3:City><v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode><v3:PostalCode>37207</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-03T17:22:00-06:00</v3:Timestamp><v3:EventType>PU</v3:EventType><v3:EventDescription>Picked up</v3:EventDescription><v3:Address><v3:City>NASHVILLE</v3:City><v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode><v3:PostalCode>37207</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events><v3:Events><v3:Timestamp>2008-12-03T12:10:00-06:00</v3:Timestamp><v3:EventType>OC</v3:EventType><v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription><v3:Address><v3:PostalCode>37211</v3:PostalCode><v3:CountryCode>US</v3:CountryCode><v3:Residential>false</v3:Residential></v3:Address></v3:Events></v3:TrackDetails></v3:TrackReply>
File without changes
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ns:TrackReply xmlns:ns="http://fedex.com/ws/track/v3"><ns:HighestSeverity>ERROR</ns:HighestSeverity><ns:Notifications><ns:Severity>ERROR</ns:Severity><ns:Source>prof</ns:Source><ns:Code>1000</ns:Code><ns:Message>Authentication Failed</ns:Message></ns:Notifications><ns:Version>
3
+ <ns:ServiceId>trck</ns:ServiceId>
4
+ <ns:Major>3</ns:Major>
5
+ <ns:Intermediate>0</ns:Intermediate>
6
+ <ns:Minor>0</ns:Minor>
7
+ </ns:Version></ns:TrackReply>
@@ -0,0 +1,8 @@
1
+ malformed\nfdsf
2
+ fsd
3
+ fds
4
+
5
+
6
+
7
+ dsf
8
+ dsfsdf
@@ -0,0 +1 @@
1
+ <malformed/>
@@ -0,0 +1,84 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'rubygems'
4
+ require 'shippinglogic'
5
+ require 'spec'
6
+ require 'spec/autorun'
7
+ require 'ruby-debug'
8
+ require 'fakeweb'
9
+ require File.dirname(__FILE__) + "/lib/interceptor"
10
+
11
+ Shippinglogic::FedEx.options[:test] = true
12
+
13
+ Spec::Runner.configure do |config|
14
+ config.before(:each) do
15
+ FakeWeb.clean_registry
16
+
17
+ if File.exists?(File.dirname(__FILE__) + "/responses/_new.xml")
18
+ raise "You have a new response in your response folder, you need to rename this before we can continue testing."
19
+ end
20
+ end
21
+
22
+ def new_fedex
23
+ Shippinglogic::FedEx.new(
24
+ fedex_credentials["key"],
25
+ fedex_credentials["password"],
26
+ fedex_credentials["account"],
27
+ fedex_credentials["meter"]
28
+ )
29
+ end
30
+
31
+ def fedex_credentials
32
+ return @fedex_credentials if defined?(@fedex_credentials)
33
+
34
+ fedex_credentials_path = File.dirname(__FILE__) + "/fedex_credentials.yml"
35
+
36
+ if !File.exists?(fedex_credentials_path)
37
+ raise "You need to add your own FedEx test credentials in spec/fedex_credentials.yml. See spec/fedex_credentials.example.yml for an example."
38
+ end
39
+
40
+ @fedex_credentials = YAML.load(File.read(fedex_credentials_path))
41
+ end
42
+
43
+ def fedex_tracking_number
44
+ "077973360403984"
45
+ end
46
+
47
+ def fedex_shipper
48
+ {
49
+ :shipper_streets => "260 Broadway",
50
+ :shipper_city => "New York",
51
+ :shipper_state => "NY",
52
+ :shipper_postal_code => "10007",
53
+ :shipper_country => "US"
54
+ }
55
+ end
56
+
57
+ def fedex_recipient
58
+ {
59
+ :recipient_streets => "1500 Marilla Street",
60
+ :recipient_city => "Dallas",
61
+ :recipient_state => "TX",
62
+ :recipient_postal_code => "75201",
63
+ :recipient_country => "US"
64
+ }
65
+ end
66
+
67
+ def fedex_package
68
+ {
69
+ :weight => 2,
70
+ :length => 2,
71
+ :width => 2,
72
+ :height => 2
73
+ }
74
+ end
75
+
76
+ def use_response(key, options = {})
77
+ path = File.dirname(__FILE__) + "/responses/#{key}.xml"
78
+ if File.exists?(path)
79
+ options[:content_type] ||= "text/xml"
80
+ options[:body] ||= File.read(path)
81
+ FakeWeb.register_uri(:post, "https://gatewaybeta.fedex.com:443/xml", options)
82
+ end
83
+ end
84
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: binarylogic-shippinglogic
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Johnson of Binary Logic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-08-06 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.2.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: httparty
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.4
34
+ version:
35
+ description: A simple and clean library to interface with shipping carriers
36
+ email: bjohnson@binarylogic.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - LICENSE
43
+ - README.rdoc
44
+ files:
45
+ - .document
46
+ - .gitignore
47
+ - LICENSE
48
+ - README.rdoc
49
+ - Rakefile
50
+ - VERSION.yml
51
+ - lib/shippinglogic.rb
52
+ - lib/shippinglogic/fedex.rb
53
+ - lib/shippinglogic/fedex/attributes.rb
54
+ - lib/shippinglogic/fedex/error.rb
55
+ - lib/shippinglogic/fedex/rates.rb
56
+ - lib/shippinglogic/fedex/request.rb
57
+ - lib/shippinglogic/fedex/response.rb
58
+ - lib/shippinglogic/fedex/service.rb
59
+ - lib/shippinglogic/fedex/track.rb
60
+ - lib/shippinglogic/fedex/validation.rb
61
+ - spec/fedex/attributes_spec.rb
62
+ - spec/fedex/error_spec.rb
63
+ - spec/fedex/rates_spec.rb
64
+ - spec/fedex/service_spec.rb
65
+ - spec/fedex/track_spec.rb
66
+ - spec/fedex/validation_spec.rb
67
+ - spec/fedex_credentials.example.yaml
68
+ - spec/fedex_spec_no.rb
69
+ - spec/lib/interceptor.rb
70
+ - spec/responses/basic_rate.xml
71
+ - spec/responses/basic_track.xml
72
+ - spec/responses/blank.xml
73
+ - spec/responses/failed_authentication.xml
74
+ - spec/responses/malformed.xml
75
+ - spec/responses/unexpected.xml
76
+ - spec/spec_helper.rb
77
+ has_rdoc: false
78
+ homepage: http://github.com/binarylogic/shippinglogic
79
+ licenses:
80
+ post_install_message:
81
+ rdoc_options:
82
+ - --charset=UTF-8
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
+ version:
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: "0"
96
+ version:
97
+ requirements: []
98
+
99
+ rubyforge_project: shippinglogic
100
+ rubygems_version: 1.3.5
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: A simple and clean library to interface with shipping carriers
104
+ test_files:
105
+ - spec/fedex/attributes_spec.rb
106
+ - spec/fedex/error_spec.rb
107
+ - spec/fedex/rates_spec.rb
108
+ - spec/fedex/service_spec.rb
109
+ - spec/fedex/track_spec.rb
110
+ - spec/fedex/validation_spec.rb
111
+ - spec/fedex_spec_no.rb
112
+ - spec/lib/interceptor.rb
113
+ - spec/spec_helper.rb