fulfillment_request.rb 353 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. module ShopifyAPI
  3. class FulfillmentRequest < Base
  4. init_prefix :order
  5. def order_id
  6. @prefix_options[:order_id]
  7. end
  8. def mark_as_failed
  9. options = {}
  10. options[:message] = failure_message if failure_message
  11. load_attributes_from_response(put(:mark_as_failed, options))
  12. end
  13. end
  14. end