-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add locations_for_move API #669
Conversation
test/fixtures/locations.json
Outdated
}, | ||
"message": "Current location.", | ||
"movable": false | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixture isn't just locations, it includes some movable info. Better named fulfillment_order_move_locations
61cac8c
to
b6f4195
Compare
|
||
location = location_for_move.location | ||
assert location.is_a?(ShopifyAPI::Location) | ||
assert_equal 1059367776,location.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after comma
@@ -17,6 +17,14 @@ def fulfillments(options = {}) | |||
fulfillment_hashes.map { |fulfillment_hash| Fulfillment.new(fulfillment_hash) } | |||
end | |||
|
|||
def locations_for_move(options = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What could be passed in as options
? Could add a test for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, there is no options
. I will remove it.
b6f4195
to
876e7cc
Compare
876e7cc
to
daca0cf
Compare
Closes: https://github.com/Shopify/shopify/issues/211513
This PR is to implement the API for REST API:
GET fulfillment_orders/:fulfillment_order_id/locations_for_move