Sha256: 719890b5df8476e1698c229bc02a869e9ea2f84c8c1b5cbbce71f7ca615bea9c

Contents?: true

Size: 715 Bytes

Versions: 5

Compression:

Stored size: 715 Bytes

Contents

module Brightpearl
  class OrderRow < Resource
    class << self 
      # https://api-docs.brightpearl.com/order/order-row/post.html
      def post(order_id, params)
        send_request(path: "order-service/order/#{order_id}/row", method: :post, body: params)
      end
  
      # https://api-docs.brightpearl.com/order/order-row/patch.html
      def patch(order_id, id, params)
        send_request(path: "order-service/order/#{order_id}/row/#{id}", method: :patch, body: params)
      end
      
      # https://api-docs.brightpearl.com/order/order-row/patch.html
      def delete(order_id, id)
        send_request(path: "order-service/order/#{order_id}/row/#{id}", method: :delete)
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-brightpearl-0.4.0 lib/brightpearl/resources/order_row.rb
ruby-brightpearl-0.3.0 lib/brightpearl/resources/order_row.rb
ruby-brightpearl-0.2.0 lib/brightpearl/resources/order_row.rb
ruby-brightpearl-0.1.01 lib/brightpearl/resources/order_row.rb
ruby-brightpearl-0.1.0 lib/brightpearl/resources/order_row.rb