kylewest / DotNetShipping

UPS, FedEx, USPS shipping rate calculators for .NET
MIT License
78 stars 66 forks source link

Delivery vs Transit Times (FEDEX) #82

Open mkillebr opened 6 years ago

mkillebr commented 6 years ago

I was looking to use this to get transit times for FedEx, and it worked for most shipping speeds. With one exception, FedEx Ground. It seems there is not DeliveryTimestampSpecified for Ground or it is weeks in the future, which is not really going to be the delivery date. Instead, the TransitTimeSpecified is set. I also noticed that TransitTimeSpecified does not get set for a few of the other speeds.

What I did to get around this was to add transit time to Rate and set it to zero by default and then to whatever TransitTime is returned, if it is not null. I'll fork the project and upload the code tomorrow. It's a hack, but maybe we can figure out a better way to go about it.