lib/fedex/request/base.rb in fedex-3.3.0 vs lib/fedex/request/base.rb in fedex-3.3.1
- old
+ new
@@ -175,9 +175,15 @@
package_count = @packages.size
xml.PackageCount package_count
@packages.each do |package|
xml.RequestedPackageLineItems{
xml.GroupPackageCount 1
+ if package[:insured_value]
+ xml.InsuredValue{
+ xml.Currency package[:insured_value][:currency]
+ xml.Amount package[:insured_value][:amount]
+ }
+ end
xml.Weight{
xml.Units package[:weight][:units]
xml.Value package[:weight][:value]
}
if package[:dimensions]