Module: Spree::API::Client::Checkouts
- Included in:
- Spree::API::Client
- Defined in:
- lib/spree-api-client/checkouts.rb
Instance Method Summary collapse
- #checkout(order_number, options = {}) ⇒ Object
- #checkouts(options = {}) ⇒ Object
- #create_checkout(options = {}) ⇒ Object
- #next(order_number) ⇒ Object
- #update_checkout(order_number, options = {}) ⇒ Object
Instance Method Details
#checkout(order_number, options = {}) ⇒ Object
9 10 11 |
# File 'lib/spree-api-client/checkouts.rb', line 9 def checkout(order_number, ={}) get("checkouts/#{order_number}", ) end |
#checkouts(options = {}) ⇒ Object
5 6 7 |
# File 'lib/spree-api-client/checkouts.rb', line 5 def checkouts(={}) get('checkouts', )['checkouts'] end |
#create_checkout(options = {}) ⇒ Object
13 14 15 |
# File 'lib/spree-api-client/checkouts.rb', line 13 def create_checkout(={}) post("checkouts", ) 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, ={}) put("checkouts/#{order_number}", ) end |