lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.7 vs lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.8

- old
+ new

@@ -62,9 +62,18 @@ b.CountryCode country_code(send("#{type}_country")) if send("#{type}_country") b.Residential send("#{type}_residential") end end + def build_insured_value(b) + if insured_value + b.TotalInsuredValue do + b.Currency currency_type + b.Amount insured_value + end + end + end + # A convenience method for building the package block in your XML request def build_package(b) b.PackageCount package_count b.RequestedPackages do \ No newline at end of file