Sha256: fbbb0c930048112a711499928da4f600550be3d715ca1310cad526e871fbfaab
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping module Services class TForceFreight ORIGIN_COUNTRIES = %w( CA MX PR US ).map { |country_code| Carmen::Country.coded(country_code) }.freeze SHIPPING_METHODS = [ ['308', 'TForce Freight LTL'], ['309', 'TForce Freight LTL - Guaranteed'], ['334', 'TForce Freight LTL - Guaranteed A.M.'], ['349', 'TForce 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friendly_shipping-0.9.0 | lib/friendly_shipping/services/tforce_freight/shipping_methods.rb |