Przeglądaj źródła

Add Fulfillment#cancel

Denis Odorcic 13 lat temu
rodzic
commit
82feb551c2
1 zmienionych plików z 2 dodań i 0 usunięć
  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