Sha256: 71a8f91c315605f80edadbe033c3c43ad1871bfef02a5d6071cf65cef34a981d

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

module Unforlogistics
  module Core
    module ShipmentDispatchControls
      def get_shipment_dispatch_controls(filters={})
        get_request('/shipment_dispatch_controls', filters)
      end

      def get_shipment_dispatch_control(id)
        get_request("/shipment_dispatch_controls/#{id}")
      end

      def create_shipment_dispatch_control(attrs={})
        post_request('/shipment_dispatch_controls', attrs)
      end

      def cancel_shipment_dispatch_control(id)
        put_request("/shipment_dispatch_controls/#{id}/cancellation")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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