import { Parameters, Result } from './CloseDeclare';
import { ServiceClient } from 'cn.keytop.stc.midend.ms.client';


const client = new ServiceClient()
const method = 'GET'
const enctype = 'application/x-www-form-urlencoded'

/**
* 根据用户id关闭用户后付费状态 
* method:GET
* enctype:application/x-www-form-urlencoded
* pid:stc.ms.postpaid.PostpaidCdApi
* sid:stc.ms.postpaid.PostpaidCdApiclose
* version:1.19
* @param parameters
*/
export async function close(parameters: Parameters): Promise<Result> {
    const headers = {
        'pid': 'stc.ms.postpaid.PostpaidCdApi',
        'sid': 'stc.ms.postpaid.PostpaidCdApiclose',
        'uri': 'userPostpaid/close',
        'version': '1.19'
    }
    return await client.request(method, enctype, headers, parameters)
}
