class Jet::Client::Products
Products
client
Public Class Methods
new(client)
click to toggle source
# File lib/jet/client/products.rb, line 5 def initialize(client) @client = client end
Public Instance Methods
archive_sku(merchant_sku, body = {})
click to toggle source
# File lib/jet/client/products.rb, line 29 def archive_sku(merchant_sku, body = {}) @client.rest_put_with_token("/merchant-skus/#{merchant_sku}/status/archive", body) end
get_inventory(merchant_sku)
click to toggle source
# File lib/jet/client/products.rb, line 13 def get_inventory(merchant_sku) @client.rest_get_with_token("/merchant-skus/#{merchant_sku}/inventory") end
get_price(merchant_sku)
click to toggle source
# File lib/jet/client/products.rb, line 33 def get_price(merchant_sku) @client.rest_get_with_token("/merchant-skus/#{merchant_sku}/price") end
get_product(merchant_sku)
click to toggle source
# File lib/jet/client/products.rb, line 21 def get_product(merchant_sku) @client.rest_get_with_token("/merchant-skus/#{merchant_sku}") end
get_products(params = {})
click to toggle source
# File lib/jet/client/products.rb, line 41 def get_products(params = {}) @client.rest_get_with_token('/merchant-skus', params) end
update_image(merchant_sku, body = {})
click to toggle source
# File lib/jet/client/products.rb, line 37 def update_image(merchant_sku, body = {}) @client.rest_put_with_token("/merchant-skus/#{merchant_sku}/image", body) end
update_inventory(merchant_sku, body = {})
click to toggle source
# File lib/jet/client/products.rb, line 9 def update_inventory(merchant_sku, body = {}) @client.rest_patch_with_token("/merchant-skus/#{merchant_sku}/inventory", body) end
update_price(merchant_sku, body = {})
click to toggle source
# File lib/jet/client/products.rb, line 25 def update_price(merchant_sku, body = {}) @client.rest_put_with_token("/merchant-skus/#{merchant_sku}/price", body) end
update_product(merchant_sku, body = {})
click to toggle source
# File lib/jet/client/products.rb, line 17 def update_product(merchant_sku, body = {}) @client.rest_put_with_token("/merchant-skus/#{merchant_sku}", body) end