Przeglądaj źródła

Add complete action for Fulfillment endpoint

Maarten van Grootel 11 lat temu
rodzic
commit
0e75538f3d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      lib/shopify_api/resources/fulfillment.rb

+ 1 - 0
lib/shopify_api/resources/fulfillment.rb

@@ -3,5 +3,6 @@ module ShopifyAPI
     self.prefix = "/admin/orders/:order_id/"
 
     def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
+    def complete; load_attributes_from_response(post(:complete, {}, only_id)); end
   end
 end