Ver Fonte

Add Fulfillment#cancel

Denis Odorcic há 13 anos atrás
pai
commit
82feb551c2
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      lib/shopify_api/resources/fulfillment.rb

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

@@ -1,5 +1,7 @@
 module ShopifyAPI
   class Fulfillment < Base
     self.prefix = "/admin/orders/:order_id/"
+
+    def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
   end
 end