Class: Brightpearl::OrderCustomFieldMetadata
- Defined in:
- lib/brightpearl/resources/order_custom_field_metadata.rb
Overview
Constant Summary collapse
- VALID_ORDER_TYPES =
["sale", "purchase"].freeze
Class Method Summary collapse
Methods inherited from Resource
Class Method Details
.get(order_type, id_set = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/brightpearl/resources/order_custom_field_metadata.rb', line 7 def get(order_type, id_set = nil) order_type = order_type.to_s validate_order_type!(order_type) path = "order-service/#{order_type}/custom-field-meta-data" path = "#{path}/#{id_set}" if id_set send_request(path: path, method: :get) end |