Sha256: af8ee8785edd3fcead25554bdfbaa072c313248837d9239f15bb20e094503b3a

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class RL
      # Available origin countries for R+L shipments.
      ORIGIN_COUNTRIES = %w[
        AG BB CA DO GU GY JM PR VC TT US VG VI
      ].map { |country_code| Carmen::Country.coded(country_code) }.freeze

      # Available R+L shipping methods.
      SHIPPING_METHODS = [
        ["STD", "Standard Service"],
        ["GSDS", "Guaranteed Service"],
        ["GSAM", "Guaranteed AM Service"],
        ["GSHW", "Guaranteed Hourly Window Service"],
        ["EXPD", "Expedited Service"]
      ].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/rl/shipping_methods.rb