Method: ActiveShipping::UPS#allow_package_level_reference_numbers
- Defined in:
- lib/active_shipping/carriers/ups.rb
#allow_package_level_reference_numbers(origin, destination) ⇒ Object (protected)
1165 1166 1167 1168 1169 |
# File 'lib/active_shipping/carriers/ups.rb', line 1165 def allow_package_level_reference_numbers(origin, destination) # if the package is US -> US or PR -> PR the only type of reference numbers that are allowed are package-level # Otherwise the only type of reference numbers that are allowed are shipment-level [['US','US'],['PR', 'PR']].include?([origin,destination].map(&:country_code)) end |