class PlentyClient::Order::Shipping::ServiceProvider

Constants

BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH
FIND_ORDER_SHIPPING_SERVICE_PROVIDER
LIST_ORDERS_SHIPPING_SERVICE_PROVIDER

Public Class Methods

find(service_provider_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/order/shipping/service_provider.rb, line 21
def find(service_provider_id, headers = {}, &block)
  get(build_endpoint("#{BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH}#{FIND_ORDER_SHIPPING_SERVICE_PROVIDER}",
                     shipping_service_provider: service_provider_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/order/shipping/service_provider.rb, line 16
def list(headers = {}, &block)
  get(build_endpoint("#{BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH}#{LIST_ORDERS_SHIPPING_SERVICE_PROVIDER}"),
      headers, &block)
end