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-5.0.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.13.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.12.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.11.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.10.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.9.1 lib/shopify_api/resources/draft_order.rb
shopify_api-4.9.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.8.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.7.1 lib/shopify_api/resources/draft_order.rb
shopify_api-4.7.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.6.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.5.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.4.0 lib/shopify_api/resources/draft_order.rb
shopify_api-4.3.9 lib/shopify_api/resources/draft_order.rb
shopify_api-4.3.8 lib/shopify_api/resources/draft_order.rb
shopify_api-4.3.7 lib/shopify_api/resources/draft_order.rb