Created
August 27, 2014 18:20
-
-
Save huoxito/ec827fc2f8cee08886fd to your computer and use it in GitHub Desktop.
Give back service ID to Wombat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_order | |
# do stuff / add the order to shopify and get that order id | |
# | |
# e.g. order = Shopify.create_order @payload | |
# This will do a partial update in Wombat, only the new key | |
# shopify_id will be added everything else will be the same | |
add_object "order", { @payload[:order][:id], shopify_id: order.id } | |
result 200, "Order created!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should the add_object call look like this instead?