"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.check = void 0;
const cn_keytop_stc_midend_ms_client_1 = require("cn.keytop.stc.midend.ms.client");
const client = new cn_keytop_stc_midend_ms_client_1.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
*/
function check(parameters) {
    return __awaiter(this, void 0, void 0, function* () {
        const headers = {
            'pid': 'stc.ms.postpaid.PostpaidCdApi',
            'sid': 'stc.ms.postpaid.PostpaidCdApicheck',
            'uri': 'carCome/postpaid/check',
            'version': '1.19'
        };
        return yield client.request(method, enctype, headers, parameters);
    });
}
exports.check = check;
