Sha256: b68c4a8a514f1ba2cb4c4f9862d58ea225cab9d5b18f7d72b688c153342a5963

Contents?: true

Size: 674 Bytes

Versions: 32

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsFreight
      ORIGIN_COUNTRIES = %w(
        CA MX PR US
      ).map { |country_code| Carmen::Country.coded(country_code) }.freeze

      SHIPPING_METHODS = [
        ['308', 'UPS Freight LTL'],
        ['309', 'UPS Freight LTL - Guaranteed'],
        ['334', 'UPS Freight LTL - Guaranteed A.M.'],
        ['349', 'UPS Standard LTL']
      ].freeze.map do |code, name|
        FriendlyShipping::ShippingMethod.new(
          name: name,
          service_code: code,
          origin_countries: ORIGIN_COUNTRIES,
          multi_package: true
        ).freeze
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.8.1 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.5.2 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.5.1 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.5 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.4.14 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.4.13 lib/friendly_shipping/services/ups_freight/shipping_methods.rb
friendly_shipping-0.4.12 lib/friendly_shipping/services/ups_freight/shipping_methods.rb