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


const client = new ServiceClient()
const method = 'POST'
const enctype = 'application/json'

/**
* 车场入场校验是否允许后付费(信用付) 
* method:POST
* enctype:application/json
* pid:stc.ms.postpaid.PostpaidCdApi
* sid:stc.ms.postpaid.PostpaidCdApicheck
* version:1.19
* @param parameters
*/
export async function check(parameters: Parameters): Promise<Result> {
    const headers = {
        'pid': 'stc.ms.postpaid.PostpaidCdApi',
        'sid': 'stc.ms.postpaid.PostpaidCdApicheck',
        'uri': 'carCome/postpaid/check',
        'version': '1.19'
    }
    return await client.request(method, enctype, headers, parameters)
}
