Sha256: 5b752629d8353b32d17757ce50a3c6032d8a68350c354d1c96e443b70bd6eeda

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

module Spree
  module API
    class Client
      module Shipments
        def shipments(options={})
          get("shipments", options)['shipments']
        end

        def update_shipment(shipment_id, options={})
          put("shipments/#{shipment_id}", options)
        end

        def shipment_ready(shipment_id, options={})
          put("shipments/#{shipment_id}/ready", options)
        end

        def ship_shipment(shipment_id, options={})
          put("shipments/#{shipment_id}/ship", options)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cq-spree-api-client-0.0.10 lib/spree-api-client/shipments.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/shipments.rb