Sha256: 8b82fdf9d11132947963835246f6c0e3405be5cc53703fb77e22b7ab6912ffdc

Contents?: true

Size: 979 Bytes

Versions: 3

Compression:

Stored size: 979 Bytes

Contents

module Shipstation
    class Order < ApiResource
        extend Shipstation::APIOperations::List
        extend Shipstation::APIOperations::Create
        extend Shipstation::APIOperations::Retrieve
        extend Shipstation::APIOperations::Delete

        class << self
            def create_label params={}
                response = Shipstation.request(:post, "orders/createlabelfororder", params)
                
                return response
            end

            def assign_tag params={}
                response = Shipstation.request(:post, "orders/addtag", params)
                
                return response
            end
          
            # params: { [:username], [:password], input: [ {:order_number, ... }, { :order_number, ... } ] }
            # todo: complete in future phase
            # def create_update_orders params 
            #     Shipstation.request(:post, "orders/createorders", params)
            # end
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shipstation-0.14.5 lib/shipstation/order.rb
shipstation-0.13.5 lib/shipstation/order.rb
shipstation-0.13.4 lib/shipstation/order.rb