Sha256: 0baf94ae59c4aeff65049cc782a7f77a9ce41cd4642c4e3972506b7919355f0a

Contents?: true

Size: 353 Bytes

Versions: 8

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true
module ShopifyAPI
  class FulfillmentRequest < Base
    init_prefix :order

    def order_id
      @prefix_options[:order_id]
    end

    def mark_as_failed
      options = {}
      options[:message] = failure_message if failure_message
      load_attributes_from_response(put(:mark_as_failed, options))
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 lib/ruby_shopify_api/resources/fulfillment_request.rb
ruby_shopify_api-1.1.0 lib/shopify_api/resources/fulfillment_request.rb
ruby_shopify_api-1.0.0 lib/shopify_api/resources/fulfillment_request.rb
shopify_api-9.5.1 lib/shopify_api/resources/fulfillment_request.rb
shopify_api-9.5 lib/shopify_api/resources/fulfillment_request.rb
shopify_api-9.4.1 lib/shopify_api/resources/fulfillment_request.rb
shopify_api-9.4.0 lib/shopify_api/resources/fulfillment_request.rb
shopify_api-9.3.0 lib/shopify_api/resources/fulfillment_request.rb