Class: PlentyClient::Order::Shipping::ServiceProvider
- Inherits:
-
Object
- Object
- PlentyClient::Order::Shipping::ServiceProvider
- Defined in:
- lib/plenty_client/order/shipping/service_provider.rb
Constant Summary collapse
- BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH =
'/orders/shipping'
- LIST_ORDERS_SHIPPING_SERVICE_PROVIDER =
'/shipping_service_providers'
- FIND_ORDER_SHIPPING_SERVICE_PROVIDER =
'/shipping_service_providers/{shippingServiceProviderID}'
Class Method Summary collapse
Methods included from Request
Methods included from Endpoint
Class Method Details
.find(service_provider_id, headers = {}, &block) ⇒ Object
21 22 23 24 |
# 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) ⇒ Object
16 17 18 19 |
# 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 |