Module: Spree::API::Client::Checkouts

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

Instance Method Summary collapse

Instance Method Details

#checkout(order_number, options = {}) ⇒ Object



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

def checkout(order_number, options={})
  get("checkouts/#{order_number}", options)
end

#checkouts(options = {}) ⇒ Object



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

def checkouts(options={})
  get('checkouts', options)['checkouts']
end

#create_checkout(options = {}) ⇒ Object



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

def create_checkout(options={})
  post("checkouts", options)
end

#next(order_number) ⇒ Object



21
22
23
# File 'lib/spree-api-client/checkouts.rb', line 21

def next(order_number)
  put("checkouts/#{order_number}/next")
end

#update_checkout(order_number, options = {}) ⇒ Object



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

def update_checkout(order_number, options={})
  put("checkouts/#{order_number}", options)
end