Explorar o código

Add complete action for Fulfillment endpoint

Maarten van Grootel %!s(int64=11) %!d(string=hai) anos
pai
achega
0e75538f3d
Modificáronse 1 ficheiros con 1 adicións e 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