Sha256: 116b24748d7a501cbfbf99ff96606d03f4ab56b7adb171e449df27dc5a79be22

Contents?: true

Size: 582 Bytes

Versions: 11

Compression:

Stored size: 582 Bytes

Contents

module Seko
  class Shipping

    OPTIONS = {
      # UK
      "BEFORE 10"       => "PLPRE1000",
      "BEFORE 12"       => "PLPRE1200",
      "NEXT DAY"        => "PLNEXTDAY",
      "TWO DAY"         => "PLECO48",
      "SAT B4 10"       => "PLSATB410",
      "SAT B4 12"       => "PLSATB412",
      # EU
      "EU BY AIR"       => "PLCP-EU",
      # NOT SURE
      "DOCUMENT BY AIR" => "PLCP-WED",
      "PARCEL BY AIR"   => "PLNEXTCP-WEP",
      "PARCEL DPD"      => "PLDPD",
      "SATURDAY"        => "PLSAT"
    }

    def map(key)
      OPTIONS[key] || key
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
seko-0.0.11 lib/seko/shipping.rb
seko-0.0.10 lib/seko/shipping.rb
seko-0.0.9 lib/seko/shipping.rb
seko-0.0.8 lib/seko/shipping.rb
seko-0.0.7 lib/seko/shipping.rb
seko-0.0.6 lib/seko/shipping.rb
seko-0.0.5 lib/seko/shipping.rb
seko-0.0.4 lib/seko/shipping.rb
seko-0.0.3 lib/seko/shipping.rb
seko-0.0.2 lib/seko/shipping.rb
seko-0.0.1 lib/seko/shipping.rb