Explorar el Código

Add complete action for Fulfillment endpoint

Maarten van Grootel hace 11 años
padre
commit
0e75538f3d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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