Sha256: 1c3ce050c1ac32de3200b5f16a6f193f967a6155fc9cb7d98beb536088b3d47c

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Carousel
  class Shipping

    SHIPPING_MAP = {
      "EU:next-day" => "EXPRESS",
      "EU:standard" => "ECONOMY",
      "UK:standard" => "ECONOMY",
      "UK:next-day" => "ND",
      "US:standard" => "EXPRESS",
      "AU:standard" => "ECONOMY",
      "KR:standard" => "ECONOMY",
      "SG:standard" => "ECONOMY"
    }

    def self.map(code)
      SHIPPING_MAP[code] || code
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carousel-ruby-api-0.0.6 lib/carousel/shipping.rb