class Shipwire::Receivings

Public Instance Methods

cancel(id) click to toggle source
# File lib/shipwire/receivings.rb, line 19
def cancel(id)
  request(:post, "receivings/#{id}/cancel")
end
create(body) click to toggle source
# File lib/shipwire/receivings.rb, line 7
def create(body)
  request(:post, 'receivings', body: body)
end
find(id, params = {}) click to toggle source
# File lib/shipwire/receivings.rb, line 11
def find(id, params = {})
  request(:get, "receivings/#{id}", params: params)
end
holds(id, params = {}) click to toggle source
# File lib/shipwire/receivings.rb, line 28
def holds(id, params = {})
  request(:get, "receivings/#{id}/holds", params: params)
end
instructions(id)
instructions_recipients(id) click to toggle source
# File lib/shipwire/receivings.rb, line 32
def instructions_recipients(id)
  request(:get, "receivings/#{id}/instructionsRecipients")
end
Also aliased as: instructions, recipients
items(id) click to toggle source
# File lib/shipwire/receivings.rb, line 38
def items(id)
  request(:get, "receivings/#{id}/items")
end
label_cancel(id)
Alias for: labels_cancel
labels_cancel(id) click to toggle source
# File lib/shipwire/receivings.rb, line 23
def labels_cancel(id)
  request(:post, "receivings/#{id}/labels/cancel")
end
Also aliased as: label_cancel
list(params = {}) click to toggle source
# File lib/shipwire/receivings.rb, line 3
def list(params = {})
  request(:get, 'receivings', params: params)
end
recipients(id)
shipments(id) click to toggle source
# File lib/shipwire/receivings.rb, line 42
def shipments(id)
  request(:get, "receivings/#{id}/shipments")
end
trackings(id) click to toggle source
# File lib/shipwire/receivings.rb, line 46
def trackings(id)
  request(:get, "receivings/#{id}/trackings")
end
update(id, body, params = {}) click to toggle source
# File lib/shipwire/receivings.rb, line 15
def update(id, body, params = {})
  request(:put, "receivings/#{id}", body: body, params: params)
end