Sha256: 4740a973297ccdbfb8b9cabb33d965326be1431eccbcd2d7c2e6a22d74ceb0e4
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true module Shipstation class Order < ApiResource extend Shipstation::APIOperations::List extend Shipstation::APIOperations::Create extend Shipstation::APIOperations::Retrieve extend Shipstation::APIOperations::Delete extend Shipstation::APIOperations::Shipment class << self def create_label(params = {}) response = Shipstation.request(:post, 'orders/createlabelfororder', params) response end def assign_tag(params = {}) response = Shipstation.request(:post, 'orders/addtag', params) response end def remove_tag(params = {}) response = Shipstation.request(:post, 'orders/removetag', params) response end def create_bulk(params = {}) response = Shipstation.request(:post, 'orders/createorders', params) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shipstation-0.24 | lib/shipstation/order.rb |
shipstation-0.23 | lib/shipstation/order.rb |