def METHOD_NAME(self, user, password, data):
    validuntil = -1
    trafficleft = None
    premium = False
    mega = MegaClient(self, None)
    res = mega.api_request(a="uq", xfer=1, pro=1)  #: user quota details
    if isinstance(res, dict):
        premium = res.get("utype", 0) > 0
        if premium:
            validuntil = res.get("suntil", None)
            trafficleft = (
                res.get("mxfer", 0) - res.get("caxfer", 0) - res.get("csxfer", 0)
            )
        # if res['rtt']:
        #     self.log_debug(f"Tranfare history:{res['tah']}")
    return {
        "validuntil": validuntil,
        "trafficleft": trafficleft,
        "premium": premium,
    }