lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.0 vs lib/shippinglogic/fedex/request.rb in binarylogic-shippinglogic-1.0.1
- old
+ new
@@ -74,16 +74,22 @@
b.Weight do
b.Units package_weight_units
b.Value package_weight
end
- b.Dimensions do
- b.Length package_length
- b.Width package_width
- b.Height package_height
- b.Units package_dimension_units
+ if custom_packaging?
+ b.Dimensions do
+ b.Length package_length
+ b.Width package_width
+ b.Height package_height
+ b.Units package_dimension_units
+ end
end
end
+ end
+
+ def custom_packaging?
+ packaging_type == "YOUR_PACKAGING"
end
end
end
end
\ No newline at end of file