Class: PlentyClient::Order::Shipping::ServiceProvider
- Inherits:
-
Object
- Object
- PlentyClient::Order::Shipping::ServiceProvider
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/order/shipping/service_provider.rb
Constant Summary
collapse
- BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH =
'/orders/shipping'.freeze
- LIST_ORDERS_SHIPPING_SERVICE_PROVIDER =
'/shipping_service_providers'.freeze
- FIND_ORDER_SHIPPING_SERVICE_PROVIDER =
'/shipping_service_providers/{shippingServiceProviderID}'.freeze
Class Method Summary
collapse
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.find(service_provider_id, headers = {}, &block) ⇒ Object
19
20
21
22
|
# File 'lib/plenty_client/order/shipping/service_provider.rb', line 19
def find(service_provider_id, = {}, &block)
get(build_endpoint("#{BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH}#{FIND_ORDER_SHIPPING_SERVICE_PROVIDER}",
shipping_service_provider: service_provider_id), , &block)
end
|
.list(headers = {}, &block) ⇒ Object
14
15
16
17
|
# File 'lib/plenty_client/order/shipping/service_provider.rb', line 14
def list( = {}, &block)
get(build_endpoint("#{BASE_ORDERS_SHIPPING_SERVICE_PROVIDER_PATH}#{LIST_ORDERS_SHIPPING_SERVICE_PROVIDER}"),
, &block)
end
|