class DuodealerAPI::DraftOrder

Public Instance Methods

complete(options = {}) click to toggle source
# File lib/duodealer_api/resources/draft_order.rb, line 10
def complete(options = {})
  load_attributes_from_response(put(:complete, options, nil))
end
send_invoice(draft_order_invoice = DuodealerAPI::DraftOrderInvoice.new) click to toggle source
# File lib/duodealer_api/resources/draft_order.rb, line 5
def send_invoice(draft_order_invoice = DuodealerAPI::DraftOrderInvoice.new)
  resource = post(:send_invoice, {}, draft_order_invoice.encode)
  DuodealerAPI::DraftOrderInvoice.new(DuodealerAPI::DraftOrder.format.decode(resource.body))
end