Sha256: 7ec4649632912851753613612d4d5b1f0304b7599b99a97321f1145c8444d726

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module Unforlogistics
  module Core
    module Shipments
      def get_shipments(filters={})
        get_requests('/shipments', filters)
      end

      def get_shipment(code)
        get_requests("/shipments/#{code}")
      end

      def create_shipment(attrs={})
        post_requests('/shipments', attrs)
      end

      def cancel_shipment(code)
        put_requests("/shipments/#{code}/cancellation")
      end

      def quote_shipment(attrs={})
        post_requests('/shipments/quote', attrs)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unforlogistics-api-0.8 lib/unforlogistics/core/shipments.rb
unforlogistics-api-0.7 lib/unforlogistics/core/shipments.rb