Sha256: bc3ece952d2b8206c38ae33e8dd61fdac5712852b58099125b72881253ba15dc

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

module Shipstation
  class Shipment < ApiResource
    extend Shipstation::APIOperations::List

    class << self
      def get_rates(params = {})
        Shipstation.request(:post, "shipments/getrates", params)
      end

      def create_label(params = {})
        Shipstation.request(:post, 'shipments/createlabel', params)
      end

      def void_label(params = {})
        Shipstation.request(:post, 'shipments/voidlabel', params)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shipstation-0.25 lib/shipstation/shipment.rb
shipstation-0.24 lib/shipstation/shipment.rb
shipstation-0.23 lib/shipstation/shipment.rb
shipstation-0.22 lib/shipstation/shipment.rb
shipstation-0.21 lib/shipstation/shipment.rb
shipstation-0.20 lib/shipstation/shipment.rb
shipstation-0.18 lib/shipstation/shipment.rb