def create(deal)
      validate_type!(deal)

      attributes = sanitize(deal)
      _, _, root = @client.post("/deals", attributes)

      Deal.new(root[:data])
    end
def create(deal)
      validate_type!(deal)

      attributes = sanitize(deal)
      _, _, root = @client.post("/deals", attributes)

      Deal.new(root[:data])
    end
Create a deal

 post '/deals'

 Create a new deal

 @param deal [Deal, Hash] Either object of the Deal type or Hash. This object's attributes describe the object to be created.
 @return [Deal] The resulting object represting created resource.