Module: Spree::API::Client::Adjustments

Included in:
Spree::API::Client
Defined in:
lib/spree-api-client/adjustments.rb

Instance Method Summary collapse

Instance Method Details

#adjustment(id, options = {}) ⇒ Object



5
6
7
# File 'lib/spree-api-client/adjustments.rb', line 5

def adjustment(id, options={})
  get("adjustments/#{id}", options)
end

#adjustments(options = {}) ⇒ Object



9
10
11
# File 'lib/spree-api-client/adjustments.rb', line 9

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

#create_adjustment(options = {}) ⇒ Object



13
14
15
# File 'lib/spree-api-client/adjustments.rb', line 13

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

#update_adjustment(id, options = {}) ⇒ Object



17
18
19
# File 'lib/spree-api-client/adjustments.rb', line 17

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