Skip to content
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

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Add locations_for_move API #669

merged 1 commit into from
Jan 20, 2020

Conversation

linzhao125
Copy link
Contributor

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

@linzhao125 linzhao125 requested a review from a team as a code owner January 17, 2020 15:01
@linzhao125 linzhao125 self-assigned this Jan 17, 2020
},
"message": "Current location.",
"movable": false
},
Copy link
Contributor

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


location = location_for_move.location
assert location.is_a?(ShopifyAPI::Location)
assert_equal 1059367776,location.id
Copy link
Contributor

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 = {})
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@linzhao125 linzhao125 merged commit ac09df1 into master Jan 20, 2020
@linzhao125 linzhao125 temporarily deployed to rubygems January 27, 2020 20:49 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants