def create(self, *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>if "<STR_LIT:value>" in attributes:<EOL><INDENT>attributes["<STR_LIT:value>"] = Coercion.to_string(attributes["<STR_LIT:value>"])<EOL><DEDENT>_, _, deal = self.http_client.post("<STR_LIT>", body=attributes)<EOL>deal["<STR_LIT:value>"] = Coercion.to_decimal(deal["<STR_LIT:value>"])<EOL>return deal<EOL>
Create a deal

Create a new deal

:calls: ``post /deals``
:param tuple *args: (optional) Single object representing Deal resource.
:param dict **kwargs: (optional) Deal attributes.
:return: Dictionary that support attriubte-style access and represents newely created Deal resource.
:rtype: dict