This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
sometimes fedex gives us a transit time in words and no delivery time…
…stamp. in this case, we parse the transit time and calculate a delivery date range from that.
- Loading branch information
Showing
4 changed files
with
261 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<v6:RateReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:v6="http://fedex.com/ws/rate/v6"> | ||
<v6:HighestSeverity>WARNING</v6:HighestSeverity> | ||
<v6:Notifications> | ||
<v6:Severity>WARNING</v6:Severity> | ||
<v6:Source>crs</v6:Source> | ||
<v6:Code>872</v6:Code> | ||
<v6:Message>Rating is temporarily unavailable for one or more services: | ||
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:Message> | ||
<v6:LocalizedMessage>Rating is temporarily unavailable for one or more services: | ||
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:LocalizedMessage> | ||
<v6:MessageParameters> | ||
<v6:Id>SERVICE_TYPE_1</v6:Id> | ||
<v6:Value>INTERNATIONAL_FIRST</v6:Value> | ||
</v6:MessageParameters> | ||
<v6:MessageParameters> | ||
<v6:Id>SERVICE_TYPE_2</v6:Id> | ||
<v6:Value>INTERNATIONAL_PRIORITY</v6:Value> | ||
</v6:MessageParameters> | ||
<v6:MessageParameters> | ||
<v6:Id>SERVICE_TYPE_3</v6:Id> | ||
<v6:Value>INTERNATIONAL_ECONOMY</v6:Value> | ||
</v6:MessageParameters> | ||
</v6:Notifications> | ||
<v6:Notifications> | ||
<v6:Severity>NOTE</v6:Severity> | ||
<v6:Source>crs</v6:Source> | ||
<v6:Code>886</v6:Code> | ||
<v6:Message>Money Back Guarantee is not eligible for this pick up/delivery postal/zip code</v6:Message> | ||
<v6:LocalizedMessage>Money Back Guarantee is not eligible for this pick up/delivery postal/zip code</v6:LocalizedMessage> | ||
</v6:Notifications> | ||
<v6:TransactionDetail> | ||
<v6:CustomerTransactionId>ActiveShipping</v6:CustomerTransactionId> | ||
</v6:TransactionDetail> | ||
<v6:Version> | ||
<v6:ServiceId>crs</v6:ServiceId> | ||
<v6:Major>6</v6:Major> | ||
<v6:Intermediate>0</v6:Intermediate> | ||
<v6:Minor>0</v6:Minor> | ||
</v6:Version> | ||
<v6:RateReplyDetails> | ||
<v6:ServiceType>FEDEX_GROUND</v6:ServiceType> | ||
<v6:PackagingType>YOUR_PACKAGING</v6:PackagingType> | ||
<v6:DeliveryStation>CCDA </v6:DeliveryStation> | ||
<v6:CommitDetails> | ||
<v6:ServiceType>FEDEX_GROUND</v6:ServiceType> | ||
<v6:TransitTime>FIVE_DAYS</v6:TransitTime> | ||
<v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays> | ||
</v6:CommitDetails> | ||
<v6:DestinationAirportId>LAX</v6:DestinationAirportId> | ||
<v6:IneligibleForMoneyBackGuarantee>true</v6:IneligibleForMoneyBackGuarantee> | ||
<v6:OriginServiceArea>A1</v6:OriginServiceArea> | ||
<v6:DestinationServiceArea>A1</v6:DestinationServiceArea> | ||
<v6:TransitTime>FIVE_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>53</v6:RateZone> | ||
<v6:DimDivisor>0</v6:DimDivisor> | ||
<v6:FuelSurchargePercent>5.25</v6:FuelSurchargePercent> | ||
<v6:TotalBillingWeight> | ||
<v6:Units>LB</v6:Units> | ||
<v6:Value>10.0</v6:Value> | ||
</v6:TotalBillingWeight> | ||
<v6:TotalBaseCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>36.45</v6:Amount> | ||
</v6:TotalBaseCharge> | ||
<v6:TotalFreightDiscounts> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalFreightDiscounts> | ||
<v6:TotalNetFreight> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>36.45</v6:Amount> | ||
</v6:TotalNetFreight> | ||
<v6:TotalSurcharges> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>1.91</v6:Amount> | ||
</v6:TotalSurcharges> | ||
<v6:TotalNetFedExCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>38.36</v6:Amount> | ||
</v6:TotalNetFedExCharge> | ||
<v6:TotalTaxes> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalTaxes> | ||
<v6:TotalNetCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>38.36</v6:Amount> | ||
</v6:TotalNetCharge> | ||
<v6:TotalRebates> | ||
<v6:Currency>CAD</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>CAD</v6:Currency> | ||
<v6:Amount>1.91</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>KG</v6:Units> | ||
<v6:Value>1.0</v6:Value> | ||
</v6:BillingWeight> | ||
<v6:BaseCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>14.31</v6:Amount> | ||
</v6:BaseCharge> | ||
<v6:TotalFreightDiscounts> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalFreightDiscounts> | ||
<v6:NetFreight> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>14.31</v6:Amount> | ||
</v6:NetFreight> | ||
<v6:TotalSurcharges> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.75</v6:Amount> | ||
</v6:TotalSurcharges> | ||
<v6:NetFedExCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>15.06</v6:Amount> | ||
</v6:NetFedExCharge> | ||
<v6:TotalTaxes> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalTaxes> | ||
<v6:NetCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>15.06</v6:Amount> | ||
</v6:NetCharge> | ||
<v6:TotalRebates> | ||
<v6:Currency>CAD</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>CAD</v6:Currency> | ||
<v6:Amount>0.75</v6:Amount> | ||
</v6:Amount> | ||
</v6:Surcharges> | ||
</v6:PackageRateDetail> | ||
</v6:RatedPackages> | ||
<v6:RatedPackages> | ||
<v6:PackageRateDetail> | ||
<v6:RateType>PAYOR_ACCOUNT</v6:RateType> | ||
<v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod> | ||
<v6:BillingWeight> | ||
<v6:Units>KG</v6:Units> | ||
<v6:Value>4.0</v6:Value> | ||
</v6:BillingWeight> | ||
<v6:BaseCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>22.14</v6:Amount> | ||
</v6:BaseCharge> | ||
<v6:TotalFreightDiscounts> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalFreightDiscounts> | ||
<v6:NetFreight> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>22.14</v6:Amount> | ||
</v6:NetFreight> | ||
<v6:TotalSurcharges> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>1.16</v6:Amount> | ||
</v6:TotalSurcharges> | ||
<v6:NetFedExCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>23.3</v6:Amount> | ||
</v6:NetFedExCharge> | ||
<v6:TotalTaxes> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>0.0</v6:Amount> | ||
</v6:TotalTaxes> | ||
<v6:NetCharge> | ||
<v6:Currency>CAD</v6:Currency> | ||
<v6:Amount>23.3</v6:Amount> | ||
</v6:NetCharge> | ||
<v6:TotalRebates> | ||
<v6:Currency>CAD</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>CAD</v6:Currency> | ||
<v6:Amount>1.16</v6:Amount> | ||
</v6:Amount> | ||
</v6:Surcharges> | ||
</v6:PackageRateDetail> | ||
</v6:RatedPackages> | ||
</v6:RatedShipmentDetails> | ||
</v6:RateReplyDetails> | ||
</v6:RateReply> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters