class Brightpearl::ProductPrice
Public Class Methods
get(product_idset, price_list_idset = nil)
click to toggle source
api-docs.brightpearl.com/product/product-price/get.html
# File lib/brightpearl/resources/product_price.rb, line 5 def get(product_idset, price_list_idset = nil) path = "product-service/product-price/#{product_idset}" path = "#{path}/price-list/#{price_list_id}" if price_list_idset send_request(path: path, method: :get) end
options(product_idset, price_list_idset = nil)
click to toggle source
api-docs.brightpearl.com/product/product-price/options.html
# File lib/brightpearl/resources/product_price.rb, line 17 def options(product_idset, price_list_idset = nil) path = "product-service/product-price/#{product_idset}" path = "#{path}/price-list/#{price_list_id}" if price_list_idset send_request(path: path, method: :options) end
put(product_id, params)
click to toggle source
api-docs.brightpearl.com/product/product-price/put.html
# File lib/brightpearl/resources/product_price.rb, line 12 def put(product_id, params) send_request(path: "product-service/product-price/#{product_id}/price-list", method: :put, body: params) end