class Jet::Client::Returns
Returns
client
Constants
- STATUSES
Public Class Methods
new(client)
click to toggle source
# File lib/jet/client/returns.rb, line 11 def initialize(client) @client = client end
Public Instance Methods
complete_return(return_id, body = {})
click to toggle source
# File lib/jet/client/returns.rb, line 28 def complete_return(return_id, body = {}) @client.rest_put_with_token("/returns/#{return_id}/complete", body) end
get_return(return_url)
click to toggle source
# File lib/jet/client/returns.rb, line 20 def get_return(return_url) @client.rest_get_with_token(return_url) end
get_return_by_id(return_id)
click to toggle source
# File lib/jet/client/returns.rb, line 24 def get_return_by_id(return_id) @client.rest_get_with_token("/returns/state/#{return_id}") end
get_returns(status = :created)
click to toggle source
# File lib/jet/client/returns.rb, line 15 def get_returns(status = :created) query_status = STATUSES[status] @client.rest_get_with_token("/returns/#{query_status}") end