lib/active_shipping/carriers/fedex.rb in active_shipping-1.7.1 vs lib/active_shipping/carriers/fedex.rb in active_shipping-1.7.2
- old
+ new
@@ -132,10 +132,12 @@
'SF' => :at_sort_facility,
'SP' => :split_status,
'TR' => :transfer
)
+ DEFAULT_LABEL_STOCK_TYPE = 'PAPER_7X4.75'
+
def self.service_name_for_code(service_code)
SERVICE_TYPES[service_code] || "FedEx #{service_code.titleize.sub(/Fedex /, '')}"
end
def requirements
@@ -216,10 +218,10 @@
end
xml.LabelSpecification do
xml.LabelFormatType('COMMON2D')
xml.ImageType('PNG')
- xml.LabelStockType('PAPER_7X4.75')
+ xml.LabelStockType(options[:label_stock_type] || DEFAULT_LABEL_STOCK_TYPE)
end
xml.RateRequestTypes('ACCOUNT')
xml.PackageCount(packages.size)