Parcourir la source

Add complete action for Fulfillment endpoint

Maarten van Grootel il y a 11 ans
Parent
commit
0e75538f3d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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