kylewest / DotNetShipping

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

Not setting CountryCode of OriginAddress in UPSProvider.BuildRatesRequestMessage Method #52

Closed ramanmittal closed 8 years ago

ramanmittal commented 8 years ago

While Create the XML, CountryCode of Shipment.OriginAddress.CountryCode is not wriiten. Due to this shipping rates for shippings which have origin country Canada not comes.

When I insert 'writer.WriteElementString("CountryCode", Shipment.OriginAddress.CountryCode);' at UPSProvider 176 It stared to giving shipping rates for Canada.

kylewest commented 8 years ago

thanks for the report. I have fixed this and added a test to ensure it doesn't pop up again. v0.9.5.63 has been deployed to NuGet.