from ..base import ShopifyResource


class Fulfillment(ShopifyResource):
    _prefix_source = "/orders/$order_id/"

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

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

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


class FulfillmentOrders(ShopifyResource):
    _prefix_source = "/orders/$order_id/"

@@ -28,16 +28,28 @@
 esource%0A
+import json%0A
 %0A%0Aclass 
@@ -389,89 +389,716 @@
 ))%0A%0A
-%0Aclass FulfillmentOrders(ShopifyResource):%0A    _prefix_source = %22/orders/$order_id/%22
+    def update_tracking(self, tracking_info, notify_customer):%0A        fulfill = FulfillmentV2()%0A        fulfill.id = self.id%0A        fulfill.update_tracking(tracking_info, notify_customer)%0A%0A%0Aclass FulfillmentOrders(ShopifyResource):%0A    _prefix_source = %22/orders/$order_id/%22%0A%0Aclass FulfillmentV2(ShopifyResource):%0A    _singular = 'fulfillment'%0A    _plural = 'fulfillments'%0A    %0A    def update_tracking(self, tracking_info, notify_customer):%0A        body = %7B%0A            %22fulfillment%22: %7B%0A                %22tracking_info%22: tracking_info,%0A                %22notify_customer%22: notify_customer%0A            %7D%0A        %7D%0A        self._load_attributes_from_response(self.post(%22update_tracking%22, json.dumps(body).encode()))
 %0A

Add update_tracking