Sha256: c7654b142d7e2772becf784cd41ada736eadb0cd717f10bc997fd8a40397f65f

Contents?: true

Size: 432 Bytes

Versions: 36

Compression:

Stored size: 432 Bytes

Contents

module ShopifyAPI
  class DraftOrder < Base
    include Metafields

    def send_invoice(draft_order_invoice = ShopifyAPI::DraftOrderInvoice.new)
      resource = post(:send_invoice, {}, draft_order_invoice.encode)
      ShopifyAPI::DraftOrderInvoice.new(ShopifyAPI::DraftOrder.format.decode(resource.body))
    end

    def complete(options = {})
      load_attributes_from_response(put(:complete, options, nil))
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
shopify_api-9.2.0 lib/shopify_api/resources/draft_order.rb
shopify_api-9.1.0 lib/shopify_api/resources/draft_order.rb
shopify_api-9.0.4 lib/shopify_api/resources/draft_order.rb
shopify_api-9.0.3 lib/shopify_api/resources/draft_order.rb
shopify_api-9.0.2 lib/shopify_api/resources/draft_order.rb
shopify_api-9.0.1 lib/shopify_api/resources/draft_order.rb
shopify_api-9.0.0 lib/shopify_api/resources/draft_order.rb
shopify_api-8.1.0 lib/shopify_api/resources/draft_order.rb
shopify_api-8.0.0 lib/shopify_api/resources/draft_order.rb
shopify_api-7.1.0 lib/shopify_api/resources/draft_order.rb
shopify_api-7.0.2 lib/shopify_api/resources/draft_order.rb
shopify_api-7.0.1 lib/shopify_api/resources/draft_order.rb
shopify_api-7.0.0 lib/shopify_api/resources/draft_order.rb
shopify_api-6.0.0 lib/shopify_api/resources/draft_order.rb
shopify_api-5.2.4 lib/shopify_api/resources/draft_order.rb
shopify_api-5.2.3 lib/shopify_api/resources/draft_order.rb
shopify_api-5.2.2 lib/shopify_api/resources/draft_order.rb
shopify_api-5.2.1 lib/shopify_api/resources/draft_order.rb
shopify_api-5.2.0 lib/shopify_api/resources/draft_order.rb
shopify_api-5.1.0 lib/shopify_api/resources/draft_order.rb