lib/fedex/request/shipment.rb in fedex-2.2.0 vs lib/fedex/request/shipment.rb in fedex-2.2.1
- old
+ new
@@ -57,10 +57,12 @@
end
# Add the label specification
def add_label_specification(xml)
xml.LabelSpecification {
- hash_to_xml(xml, @label_specification)
+ xml.LabelFormatType @label_specification[:label_format_type]
+ xml.ImageType @label_specification[:image_type]
+ xml.LabelStockType @label_specification[:label_stock_type]
}
end
# Callback used after a failed shipment response.
def failure_response(api_response, response)