def update(self, id, *args, **kwargs):
if not args and not kwargs:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>attributes = args[<NUM_LIT:0>] if args else kwargs<EOL>attributes = dict((k, v) for k, v in attributes.iteritems() if k in self.OPTS_KEYS_TO_PERSIST)<EOL>_, _, order = self.http_client.put("<STR_LIT>".format(id=id), body=attributes)<EOL>return order<EOL>
Update an order

Updates order information
If the specified order does not exist, the request will return an error

:calls: ``put /orders/{id}``
:param int id: Unique identifier of a Order.
:param tuple *args: (optional) Single object representing Order resource which attributes should be updated.
:param dict **kwargs: (optional) Order attributes to update.
:return: Dictionary that support attriubte-style access and represents updated Order resource.
:rtype: dict