Sha256: 34c46f843c9e7c9a238c05a922322f8b91f7866eaeb95b1c70c972860b00da06
Contents?: true
Size: 462 Bytes
Versions: 9
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true 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
9 entries across 9 versions & 2 rubygems