Class: PlentyClient::Order::Shipping::Profile

Inherits:
Object
  • Object
show all
Extended by:
Endpoint, Request
Defined in:
lib/plenty_client/order/shipping/profile.rb

Constant Summary collapse

LIST_SHIPPING_PRESET =
'/orders/shipping/presets'.freeze
FIND_SHIPPING_PRESETS =
'/orders/shipping/presets/{presetId}'.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(preset_id, headers = {}, &block) ⇒ Object



16
17
18
# File 'lib/plenty_client/order/shipping/profile.rb', line 16

def find(preset_id, headers = {}, &block)
  get(build_endpoint(FIND_SHIPPING_PRESETS, preset: preset_id), headers, &block)
end

.list(headers = {}, &block) ⇒ Object



12
13
14
# File 'lib/plenty_client/order/shipping/profile.rb', line 12

def list(headers = {}, &block)
  get(build_endpoint(LIST_SHIPPING_PRESET), headers, &block)
end