Class: PlentyClient::Order::Shipping::Profile
- Inherits:
-
Object
- Object
- PlentyClient::Order::Shipping::Profile
- Defined in:
- lib/plenty_client/order/shipping/profile.rb
Constant Summary collapse
- LIST_SHIPPING_PRESET =
'/orders/shipping/presets'
- FIND_SHIPPING_PRESETS =
'/orders/shipping/presets/{presetId}'
Class Method Summary collapse
Methods included from Request
Methods included from Endpoint
Class Method Details
.find(preset_id, headers = {}, &block) ⇒ Object
18 19 20 |
# File 'lib/plenty_client/order/shipping/profile.rb', line 18 def find(preset_id, headers = {}, &block) get(build_endpoint(FIND_SHIPPING_PRESETS, preset: preset_id), headers, &block) end |
.list(headers = {}, &block) ⇒ Object
14 15 16 |
# File 'lib/plenty_client/order/shipping/profile.rb', line 14 def list(headers = {}, &block) get(build_endpoint(LIST_SHIPPING_PRESET), headers, &block) end |