Sha256: 28c845a3804993f6ab872458fd5bf8ee16de094d61c90325272e9b5192de03fe

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

module Spree
  module API
    class Client
      module Adjustments
        def adjustment(id, options={})
          get("adjustments/#{id}", options)
        end

        def adjustments(options={})
          get('adjustments', options)
        end

        def create_adjustment(options={})
          post("adjustments", options)
        end

        def update_adjustment(id, options={})
          post("adjustments", options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cq-spree-api-client-0.0.10 lib/spree-api-client/adjustments.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/adjustments.rb
cq-spree-api-client-0.0.6 lib/spree-api-client/adjustments.rb
cq-spree-api-client-0.0.5 lib/spree-api-client/adjustments.rb