Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions shopify/resources/fulfillment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
class Fulfillment(ShopifyResource):
_prefix_source = "/orders/$order_id/"

@classmethod
def _prefix(cls, options={}):
order_id = options.get("order_id")
if order_id:
return "%s/orders/%s" % (cls.site, order_id)
else:
return cls.site

def cancel(self):
self._load_attributes_from_response(self.post("cancel"))

Expand Down