"use strict";
/**
 * 统一对外接口模块
 * 收费系统统一对外接口协议文档.docx
 */
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
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());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TyExternalApiClient = exports.PostDeviceAlarmInfoInput = exports.GetFeeDetailRes = exports.GetFeeDetailReq = exports.GetReservableInfoRequest = exports.CancelReserveSpaceRequest = exports.ReserveSpaceChangeTimeRequest = exports.ReserveSpaceRequest = exports.ModifyCardStatusRequest = exports.RechargeInvoiceRequest = exports.AuditCardRechargeRequest = exports.RefundCarCardFeeRequest = exports.PayCarCardFeeRequest = exports.PostCarBackAwayInput = exports.PostCarCaptureInfoInput = exports.PostSpecPayNotifyInput = exports.PostCarCardChargeInfoInput = exports.DelCarCardInfoRequest = exports.ModifyCarCardNoRequest = exports.GetMyBaseInfoReponse = exports.GetMyBaseInfoRequest = exports.QueryLotMer4UnityRequest = exports.Recharge3rdByUnityRequest = exports.FindLotRolesResponse = exports.FindListByLotIdPageResponse = exports.SaveLogRequest = exports.FindListByLotIdPageRequest = exports.FindLotRolesRequest = exports.QueryRecordByIdResponse = exports.QueryRecordByIdRequest = exports.QueryCurrentUserResponse = exports.QueryCurrentUserRequest = exports.UnlockCarplateRequest = exports.LockCarplateRequest = exports.QueryCarBlackInfoRequest = exports.DelCarBlackInfoRequest = exports.ModifyCarBlackInfoRequest = exports.AddCarBlackInfoRequest = exports.RecaptureRequest = exports.AddVirtualTrafficRequest = exports.ModifyCarInfoRequest = exports.RemoteOpenRequest = exports.GetCarInfoByNodeIdResponse = exports.GetNodeCarInfoRequest = exports.GetDeviceStatusRequest = exports.GetFreeSpaceNumResponse = exports.GetFreeSpaceNumRequest = exports.GetDeviceListRequest = exports.GetParkingNodeResponse = exports.GetParkingNodeRequest = exports.AddCarCardNoRequest = exports.GetCarCardInfoResponse = exports.GetCarCardInfoRequest = exports.PostShiftWorkInfoInput = exports.PostBusInOutInput = exports.PostCarCardInfoInput = exports.PostModifyPlateNoInput = exports.PostDeviceStateInput = exports.PostFreeParkingSpaceInput = exports.PostPayFeeInfoInput = exports.PostCarOutInfoInput = exports.PostCarInInfoInput = exports.PostPaymentInput = exports.SigningRequest = exports.UnlicensedCarInoutRequest = exports.SyncChargePilePayRequest = exports.PayParkingFeeRequest = exports.GetParkingPaymentInfoRequest = exports.GetConfigInfoResponse = exports.GetConfigInfoRequest = void 0;
var typescript_ioc_1 = require("typescript-ioc");
var TyApiCommon_1 = require("./TyApiCommon");
/**
 * 统一对外接口客户端
 *
 * ```ts
 * import { Singleton, Inject } from "typescript-ioc";
 * import { IService } from "mslib"
 * import { TyApi, TyExternalApi, ApiResponse, TyExternalApiClient } from "refs/nslib";
 *
 * export class PostCarInInfo implements IService {
 *    //去掉注释
 *    //@Inject
 *    externalApiClient:TyExternalApiClient;
 *
 *    //去掉注释
 *    //@TyApi.Service()
 *    async doService(input: TyExternalApi.PostCarInInfoInput): Promise<ApiResponse> {
 *        //使用已封装的方法
 *        let res = await this.externalApiClient.getConfigInfo();
 *
 *        return ApiResponse.success;
 *    }
 * }
 * ```
 */
var TyExternalApiClient = /** @class */ (function () {
    function TyExternalApiClient() {
    }
    TyExternalApiClient.prototype.post = function (url, data, config) {
        return __awaiter(this, void 0, void 0, function () {
            var axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, TyApiCommon_1.axiosInstance.post(url, data, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.0.1获取平台配置信息
     * 获取appid配置信息
     */
    TyExternalApiClient.prototype.getConfigInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.0.1获取平台配置信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/config/platform/GetConfigInfo', request || new GetConfigInfoRequest(), config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.1.1获取停车场列表
     */
    TyExternalApiClient.prototype.getParkingLotList = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.1.1获取停车场列表' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingLotList', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.1.2停车场信息查询接口
     */
    TyExternalApiClient.prototype.getParkingLotInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.1.2停车场信息查询接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingLotInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, JSON.parse(axiosResponse.data.data)];
                }
            });
        });
    };
    /**
     * 2.1.3车场终端设备查询接口
     * 获取车场终端设备信息列表
     */
    TyExternalApiClient.prototype.getDeviceList = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.1.3车场终端设备查询接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetDeviceList', request || new GetDeviceListRequest(), config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 由于接口2.1.5通道信息提供的是分页版本，所以再写个获取所有通道
     */
    TyExternalApiClient.prototype.getAllParkingNodes = function (parkId) {
        return __awaiter(this, void 0, void 0, function () {
            var request, nodes, apiResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        request = new GetParkingNodeRequest();
                        request.pageIndex = 1;
                        request.pageSize = 100;
                        request.parkId = parkId;
                        nodes = [];
                        _a.label = 1;
                    case 1:
                        if (!true) return [3 /*break*/, 3];
                        return [4 /*yield*/, this.getParkingNode(request)];
                    case 2:
                        apiResponse = _a.sent();
                        if (!apiResponse.nodeList || apiResponse.nodeList.length === 0)
                            return [3 /*break*/, 3];
                        nodes = nodes.concat(apiResponse.nodeList);
                        if (apiResponse.nodeList.length < request.pageSize)
                            return [3 /*break*/, 3];
                        request.pageIndex = request.pageIndex + 1;
                        return [3 /*break*/, 1];
                    case 3: return [2 /*return*/, nodes];
                }
            });
        });
    };
    /**
     * 2.1.5通道信息
     * 获取通道信息
     */
    TyExternalApiClient.prototype.getParkingNode = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.1.5通道信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingNode', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.2.1固定车新增接口
     */
    TyExternalApiClient.prototype.addCarCardNo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.1固定车新增接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/AddCarCardNo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.2.2固定车查询接口
     */
    TyExternalApiClient.prototype.getCarCardInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.2固定车查询接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetCarCardInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        //没查到会返回空字符串
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : null];
                }
            });
        });
    };
    /**
     * 2.2.3固定车修改接口
     */
    TyExternalApiClient.prototype.modifyCarCardNo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.3固定车修改接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/ModifyCarCardNo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.2.4固定车删除接口
     */
    TyExternalApiClient.prototype.delCarCardInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.4固定车删除接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('api/wec/DelCarCardInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.2.6固定车充值接口
     */
    TyExternalApiClient.prototype.payCarCardFee = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.6固定车充值接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/PayCarCardFee', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.2.9固定车退款接口
     */
    TyExternalApiClient.prototype.refundCarCardFee = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.9固定车退款接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('api/wec/RefundCarCardFee', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.2.10固定车审核
     */
    TyExternalApiClient.prototype.auditCardRecharge = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.10固定车审核' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('api/wec/AuditCardRecharge', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
 * 2.2.11固定车充值开票
 */
    TyExternalApiClient.prototype.rechargeInvoice = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.11固定车充值开票' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('api/wec/RechargeInvoice', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
 * 2.2.12内部车注销恢复
 */
    TyExternalApiClient.prototype.modifyCardStatus = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.2.12内部车注销恢复' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('api/wec/ModifyCardStatus', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.3.1查询进出记录
     */
    TyExternalApiClient.prototype.getCarInoutInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.3.1查询进出记录' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetCarInoutInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : null];
                }
            });
        });
    };
    /**
     * 2.3.2查询缴费记录
     */
    TyExternalApiClient.prototype.getParkingPaymentList = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.3.2查询缴费记录' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingPaymentList', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : null];
                }
            });
        });
    };
    /**
     * 2.3.4获取缴费记录上报所需要的数据
     */
    TyExternalApiClient.prototype.getUploadPayList = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.3.4获取缴费记录上报所需要的数据' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetUploadPayList', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : null];
                }
            });
        });
    };
    /**
     * 2.4.1用户车位预订
     *
     * 返回的是json字符串，需要手动转对象
     */
    TyExternalApiClient.prototype.reserveSpace = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.4.1用户车位预订' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/find/ReserveSpace', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.4.2修改预约车有效期
     */
    TyExternalApiClient.prototype.reserveSpace_ChangeTime = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.4.2修改预约车有效期' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/find/ReserveSpace_ChangeTime', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.4.3车位预订取消接口
     */
    TyExternalApiClient.prototype.cancelReserveSpace = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.4.3车位预订取消接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/find/CancelReserveSpace', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
    * 2.4.4预订车位查询接口
    */
    TyExternalApiClient.prototype.getReservableInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.4.4预订车位查询接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/find/GetReservableInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.1账单查询/费用查询
     *
     * data是json字符串(如果有值),需要进行转换
     */
    TyExternalApiClient.prototype.getParkingPaymentInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.1账单查询/费用查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingPaymentInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.2停车费支付
     */
    TyExternalApiClient.prototype.payParkingFee = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.2停车费支付' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/PayParkingFee', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.3查询订单状态
     */
    TyExternalApiClient.prototype.getOrderStatus = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.3查询订单状态' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetOrderStatus', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.4充电桩抵扣
     */
    TyExternalApiClient.prototype.syncChargePilePay = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.4充电桩抵扣' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/SyncChargePilePay', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.5无牌车扫出入口二维码进出场
     */
    TyExternalApiClient.prototype.unlicensedCarInout = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.5无牌车扫出入口二维码进出场' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/UnlicensedCarInout', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.5.6车辆无感支付签约变更通知接口
     */
    TyExternalApiClient.prototype.signing = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.6车辆无感支付签约变更通知接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/nosense/Signing', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
   * 2.5.17 获取计费详情
   */
    TyExternalApiClient.prototype.getFeeDetail = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.5.17 获取计费详情' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetFeeDetail', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.6.2剩余车位查询
     */
    TyExternalApiClient.prototype.getFreeSpaceNum = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.2剩余车位查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetFreeSpaceNum', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, JSON.parse(axiosResponse.data.data)];
                }
            });
        });
    };
    /**
     * 2.6.3设备状态查询
     */
    TyExternalApiClient.prototype.getDeviceStatus = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.3设备状态查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetDeviceStatus', request || new GetDeviceStatusRequest(), config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.6.6获取车辆图片信息
     */
    TyExternalApiClient.prototype.getParkingImg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.6获取车辆图片信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetParkingImg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.6.9查询车辆当前所在车场
     */
    TyExternalApiClient.prototype.getCarLocatePartId = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.9查询车辆当前所在车场' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/config/platform/GetCarLocatePartId', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.6.10区域剩余车位查询
     */
    TyExternalApiClient.prototype.getAreaFreeSpaceNum = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.10区域剩余车位查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetAreaFreeSpaceNum', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.6.16根据通道获取当前车辆(地感车辆信息)
     */
    TyExternalApiClient.prototype.getNodeCarInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.6.16根据通道获取当前车辆(地感车辆信息)' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/wec/GetNodeCarInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        //throwIfResCodeNoSuccess(axiosResponse.data);
                        if (axiosResponse.data.resCode != '0')
                            throw axiosResponse.data.resMsg;
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.7.1空闲车位修改
     */
    TyExternalApiClient.prototype.modifyFreeSpace = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.1空闲车位修改' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/ModifyFreeSpace', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.2道闸控制
     */
    TyExternalApiClient.prototype.gateControl = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.2道闸控制' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/GateControl', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.3显示屏推送
     */
    TyExternalApiClient.prototype.pushScreenMsg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.3显示屏推送' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/PushScreenMsg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.4车牌修改
     */
    TyExternalApiClient.prototype.modifyCarNo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.4车牌修改' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/ModifyCarNo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.5远程开闸
     */
    TyExternalApiClient.prototype.remoteOpen = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.5远程开闸' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/RemoteOpen', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.6修改场内车数据
     */
    TyExternalApiClient.prototype.modifyCarInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.6修改场内车数据' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/ModifyCarInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.11显示屏推送扩展接口（LED全彩屏)
     */
    TyExternalApiClient.prototype.pushLedScreenMsg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.11显示屏推送扩展接口（LED全彩屏)' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/PushLedScreenMsg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.12显示屏推送扩展接口（LCD）
     */
    TyExternalApiClient.prototype.pushLcdScreenMsg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.12显示屏推送扩展接口（LCD）' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/PushLcdScreenMsg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.13显示屏推送扩展接口（LED单红屏）
     */
    TyExternalApiClient.prototype.pushSrsScreenMsg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.13显示屏推送扩展接口（LED单红屏）' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/PushSrsScreenMsg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.14显示屏推送扩展接口（LED单红屏-剩余车位）
     */
    TyExternalApiClient.prototype.pushSrsScreenLotMsg = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.14显示屏推送扩展接口（LED单红屏-剩余车位）' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/control/PushSrsScreenLotMsg', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.15新增虚拟进出场
     */
    TyExternalApiClient.prototype.addVirtualTraffic = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.15新增虚拟进出场' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/traffic/AddVirtualTraffic', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.7.16进出场重新抓拍接口
     */
    TyExternalApiClient.prototype.recapture = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.7.16进出场重新抓拍接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/traffic/Recapture', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.8.1新增黑名单车牌信息
     */
    TyExternalApiClient.prototype.addCarBlackInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.8.1新增黑名单车牌信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/blacklist/AddCarBlackInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.8.2修改黑名单车牌信息
     */
    TyExternalApiClient.prototype.modifyCarBlackInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.8.2修改黑名单车牌信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/blacklist/ModifyCarBlackInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.8.3删除黑名单车牌信息
     */
    TyExternalApiClient.prototype.delCarBlackInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.8.3删除黑名单车牌信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/blacklist/DelCarBlackInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
 * 2.8.4查询黑名单列表
 */
    TyExternalApiClient.prototype.queryCarBlackInfo = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.8.4查询黑名单列表' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/blacklist/QueryCarBlackInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : null];
                }
            });
        });
    };
    /**
     * 2.9.1锁车接口
     */
    TyExternalApiClient.prototype.lockCarplate = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.9.1锁车接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/card/LockCarplate', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.9.2解锁接口
     */
    TyExternalApiClient.prototype.unlockCarplate = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.9.2解锁接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/api/card/UnlockCarplate', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.10.9车位图片URL接口
     */
    TyExternalApiClient.prototype.getCarImageUrl = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.10.9车位图片URL接口' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('findCar/GetCarImageUrl', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 2.14.9获取当前用户信息
     */
    TyExternalApiClient.prototype.queryCurrentUser = function (token, request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = {
                            headers: {
                                'kt-token': token,
                                'Cookie': 'mer=' + token,
                                'content-type': 'application/json;charset=UTF-8',
                                'access-control-allow-credentials': true,
                                'access-control-allow-headers': 'Origin,Content-Type,Accept,token,X-Requested-With,cookie,lotId',
                            },
                            apiDesc: '2.14.9获取当前用户信息'
                        };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/mercoupon/unity/queryCurrentUser', request || new QueryCurrentUserRequest(), config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.14.12 根据抵扣劵号查询抵扣明细
     */
    TyExternalApiClient.prototype.queryRecordById = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.14.12 根据抵扣劵号查询抵扣明细' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/kosCouponConsole/service/open/queryRecordById', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.15.10获取用户信息
     */
    TyExternalApiClient.prototype.getMyBaseInfo = function (request, token) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { headers: { 'kt-token': token }, apiDesc: '2.15.10获取用户信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/unity/service/open/user/getMyBaseInfo', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.15.4停车场与角色关系查询
     */
    TyExternalApiClient.prototype.findLotRoles = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.15.4停车场与角色关系查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/unity/service/open/role/findLotRoles', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.15.8停车场与用户关系查询
     */
    TyExternalApiClient.prototype.findListByLotIdPage = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.15.8停车场与用户关系查询' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/unity/service/open/user/findListByLotIdPage', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 2.15.12 外部系统日志保存
     */
    TyExternalApiClient.prototype.saveLog = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '2.15.12 外部系统日志保存' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/unity/log/saveLog', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data.data];
                }
            });
        });
    };
    /**
     * 第三方充值抵扣券
     */
    TyExternalApiClient.prototype.recharge3rdByUnity = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '第三方充值抵扣券' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/mercoupon/unity/recharge3rdByUnity', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        return [2 /*return*/, axiosResponse.data];
                }
            });
        });
    };
    /**
     * 查看车场商户信息
     */
    TyExternalApiClient.prototype.queryLotMer4Unity = function (request) {
        return __awaiter(this, void 0, void 0, function () {
            var config, axiosResponse;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        config = { apiDesc: '查看车场商户信息' };
                        return [4 /*yield*/, TyApiCommon_1.axiosInstance.post('/mercoupon/unity/queryLotMer4Unity', request, config)];
                    case 1:
                        axiosResponse = _a.sent();
                        TyApiCommon_1.throwIfResCodeNoSuccess(axiosResponse.data);
                        return [2 /*return*/, axiosResponse.data.data ? JSON.parse(axiosResponse.data.data) : axiosResponse.data.data];
                }
            });
        });
    };
    TyExternalApiClient = __decorate([
        typescript_ioc_1.Singleton
    ], TyExternalApiClient);
    return TyExternalApiClient;
}());
exports.TyExternalApiClient = TyExternalApiClient;
exports.default = TyExternalApiClient;
var GetConfigInfoRequest = /** @class */ (function (_super) {
    __extends(GetConfigInfoRequest, _super);
    function GetConfigInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetConfigInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetConfigInfoRequest = GetConfigInfoRequest;
var GetConfigInfoResponse = /** @class */ (function () {
    function GetConfigInfoResponse() {
    }
    return GetConfigInfoResponse;
}());
exports.GetConfigInfoResponse = GetConfigInfoResponse;
var GetParkingPaymentInfoRequest = /** @class */ (function (_super) {
    __extends(GetParkingPaymentInfoRequest, _super);
    function GetParkingPaymentInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetParkingPaymentInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetParkingPaymentInfoRequest = GetParkingPaymentInfoRequest;
var PayParkingFeeRequest = /** @class */ (function (_super) {
    __extends(PayParkingFeeRequest, _super);
    function PayParkingFeeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PayParkingFeeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.PayParkingFeeRequest = PayParkingFeeRequest;
var SyncChargePilePayRequest = /** @class */ (function (_super) {
    __extends(SyncChargePilePayRequest, _super);
    function SyncChargePilePayRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return SyncChargePilePayRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.SyncChargePilePayRequest = SyncChargePilePayRequest;
var UnlicensedCarInoutRequest = /** @class */ (function (_super) {
    __extends(UnlicensedCarInoutRequest, _super);
    function UnlicensedCarInoutRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return UnlicensedCarInoutRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.UnlicensedCarInoutRequest = UnlicensedCarInoutRequest;
var SigningRequest = /** @class */ (function (_super) {
    __extends(SigningRequest, _super);
    function SigningRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return SigningRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.SigningRequest = SigningRequest;
/**
 * 数据上报基类
 */
var DataPushBase = /** @class */ (function () {
    function DataPushBase() {
    }
    return DataPushBase;
}());
var PostPaymentInput = /** @class */ (function (_super) {
    __extends(PostPaymentInput, _super);
    function PostPaymentInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostPaymentInput;
}(DataPushBase));
exports.PostPaymentInput = PostPaymentInput;
/**
 * 3.2.1
 * 进场上报
 */
var PostCarInInfoInput = /** @class */ (function (_super) {
    __extends(PostCarInInfoInput, _super);
    function PostCarInInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarInInfoInput;
}(DataPushBase));
exports.PostCarInInfoInput = PostCarInInfoInput;
/**
 * 3.2.2
 * 出场上报
 */
var PostCarOutInfoInput = /** @class */ (function (_super) {
    __extends(PostCarOutInfoInput, _super);
    function PostCarOutInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarOutInfoInput;
}(DataPushBase));
exports.PostCarOutInfoInput = PostCarOutInfoInput;
/**
 * 3.2.3缴费记录上报
 */
var PostPayFeeInfoInput = /** @class */ (function (_super) {
    __extends(PostPayFeeInfoInput, _super);
    function PostPayFeeInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     * 获取优惠金额，单位分
     * 不能直接从字段freeMoney取
     * @param input
     * @returns
     */
    PostPayFeeInfoInput.getFreeMoney = function (input) {
        return ([1010, 1012, 1013, 1014].includes(input.payMethod) ? input.paidMoney : 0) + input.freeMoney;
    };
    /**
     * 获取实收金额，单位分
     * 不能直接从字段paidMoney取
     * @param input
     */
    PostPayFeeInfoInput.getPaidMoney = function (input) {
        return [1010, 1012, 1013, 1014].includes(input.payMethod) ? 0 : input.paidMoney;
    };
    return PostPayFeeInfoInput;
}(DataPushBase));
exports.PostPayFeeInfoInput = PostPayFeeInfoInput;
/**
 * 3.2.4空闲车位上报
 */
var PostFreeParkingSpaceInput = /** @class */ (function (_super) {
    __extends(PostFreeParkingSpaceInput, _super);
    function PostFreeParkingSpaceInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostFreeParkingSpaceInput;
}(DataPushBase));
exports.PostFreeParkingSpaceInput = PostFreeParkingSpaceInput;
/**
 * 3.2.5设备状态上报
 */
var PostDeviceStateInput = /** @class */ (function (_super) {
    __extends(PostDeviceStateInput, _super);
    function PostDeviceStateInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostDeviceStateInput;
}(DataPushBase));
exports.PostDeviceStateInput = PostDeviceStateInput;
/**
 * 3.2.6修改车牌信息上报
 */
var PostModifyPlateNoInput = /** @class */ (function (_super) {
    __extends(PostModifyPlateNoInput, _super);
    function PostModifyPlateNoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostModifyPlateNoInput;
}(DataPushBase));
exports.PostModifyPlateNoInput = PostModifyPlateNoInput;
/**
 * 3.2.7车场固定车信息上报
 */
var PostCarCardInfoInput = /** @class */ (function (_super) {
    __extends(PostCarCardInfoInput, _super);
    function PostCarCardInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarCardInfoInput;
}(DataPushBase));
exports.PostCarCardInfoInput = PostCarCardInfoInput;
/**
 *
 * 进出车位上报
 */
var PostBusInOutInput = /** @class */ (function (_super) {
    __extends(PostBusInOutInput, _super);
    function PostBusInOutInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostBusInOutInput;
}(DataPushBase));
exports.PostBusInOutInput = PostBusInOutInput;
/**
 * 3.2.10车场交班信息上报
 */
var PostShiftWorkInfoInput = /** @class */ (function (_super) {
    __extends(PostShiftWorkInfoInput, _super);
    function PostShiftWorkInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostShiftWorkInfoInput;
}(DataPushBase));
exports.PostShiftWorkInfoInput = PostShiftWorkInfoInput;
var GetCarCardInfoRequest = /** @class */ (function (_super) {
    __extends(GetCarCardInfoRequest, _super);
    function GetCarCardInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetCarCardInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetCarCardInfoRequest = GetCarCardInfoRequest;
var GetCarCardInfoResponse = /** @class */ (function () {
    function GetCarCardInfoResponse() {
    }
    return GetCarCardInfoResponse;
}());
exports.GetCarCardInfoResponse = GetCarCardInfoResponse;
var AddCarCardNoRequest = /** @class */ (function (_super) {
    __extends(AddCarCardNoRequest, _super);
    function AddCarCardNoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return AddCarCardNoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.AddCarCardNoRequest = AddCarCardNoRequest;
var GetParkingNodeRequest = /** @class */ (function (_super) {
    __extends(GetParkingNodeRequest, _super);
    function GetParkingNodeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetParkingNodeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetParkingNodeRequest = GetParkingNodeRequest;
var GetParkingNodeResponse = /** @class */ (function () {
    function GetParkingNodeResponse() {
    }
    return GetParkingNodeResponse;
}());
exports.GetParkingNodeResponse = GetParkingNodeResponse;
var GetDeviceListRequest = /** @class */ (function (_super) {
    __extends(GetDeviceListRequest, _super);
    function GetDeviceListRequest() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.deviceType = 0;
        return _this;
    }
    return GetDeviceListRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetDeviceListRequest = GetDeviceListRequest;
var GetFreeSpaceNumRequest = /** @class */ (function (_super) {
    __extends(GetFreeSpaceNumRequest, _super);
    function GetFreeSpaceNumRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetFreeSpaceNumRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetFreeSpaceNumRequest = GetFreeSpaceNumRequest;
var GetFreeSpaceNumResponse = /** @class */ (function () {
    function GetFreeSpaceNumResponse() {
    }
    return GetFreeSpaceNumResponse;
}());
exports.GetFreeSpaceNumResponse = GetFreeSpaceNumResponse;
var GetDeviceStatusRequest = /** @class */ (function (_super) {
    __extends(GetDeviceStatusRequest, _super);
    function GetDeviceStatusRequest() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.deviceType = 0;
        return _this;
    }
    return GetDeviceStatusRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetDeviceStatusRequest = GetDeviceStatusRequest;
var GetNodeCarInfoRequest = /** @class */ (function (_super) {
    __extends(GetNodeCarInfoRequest, _super);
    function GetNodeCarInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetNodeCarInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetNodeCarInfoRequest = GetNodeCarInfoRequest;
var GetCarInfoByNodeIdResponse = /** @class */ (function () {
    function GetCarInfoByNodeIdResponse() {
    }
    return GetCarInfoByNodeIdResponse;
}());
exports.GetCarInfoByNodeIdResponse = GetCarInfoByNodeIdResponse;
var RemoteOpenRequest = /** @class */ (function (_super) {
    __extends(RemoteOpenRequest, _super);
    function RemoteOpenRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return RemoteOpenRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.RemoteOpenRequest = RemoteOpenRequest;
var ModifyCarInfoRequest = /** @class */ (function (_super) {
    __extends(ModifyCarInfoRequest, _super);
    function ModifyCarInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ModifyCarInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ModifyCarInfoRequest = ModifyCarInfoRequest;
var AddVirtualTrafficRequest = /** @class */ (function (_super) {
    __extends(AddVirtualTrafficRequest, _super);
    function AddVirtualTrafficRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return AddVirtualTrafficRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.AddVirtualTrafficRequest = AddVirtualTrafficRequest;
/**
 * 2.7.16进出场重新抓拍接口入参
 */
var RecaptureRequest = /** @class */ (function (_super) {
    __extends(RecaptureRequest, _super);
    function RecaptureRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return RecaptureRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.RecaptureRequest = RecaptureRequest;
var AddCarBlackInfoRequest = /** @class */ (function (_super) {
    __extends(AddCarBlackInfoRequest, _super);
    function AddCarBlackInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return AddCarBlackInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.AddCarBlackInfoRequest = AddCarBlackInfoRequest;
var ModifyCarBlackInfoRequest = /** @class */ (function (_super) {
    __extends(ModifyCarBlackInfoRequest, _super);
    function ModifyCarBlackInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ModifyCarBlackInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ModifyCarBlackInfoRequest = ModifyCarBlackInfoRequest;
var DelCarBlackInfoRequest = /** @class */ (function (_super) {
    __extends(DelCarBlackInfoRequest, _super);
    function DelCarBlackInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DelCarBlackInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.DelCarBlackInfoRequest = DelCarBlackInfoRequest;
var QueryCarBlackInfoRequest = /** @class */ (function (_super) {
    __extends(QueryCarBlackInfoRequest, _super);
    function QueryCarBlackInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return QueryCarBlackInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.QueryCarBlackInfoRequest = QueryCarBlackInfoRequest;
var LockCarplateRequest = /** @class */ (function (_super) {
    __extends(LockCarplateRequest, _super);
    function LockCarplateRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return LockCarplateRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.LockCarplateRequest = LockCarplateRequest;
var UnlockCarplateRequest = /** @class */ (function (_super) {
    __extends(UnlockCarplateRequest, _super);
    function UnlockCarplateRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return UnlockCarplateRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.UnlockCarplateRequest = UnlockCarplateRequest;
var QueryCurrentUserRequest = /** @class */ (function (_super) {
    __extends(QueryCurrentUserRequest, _super);
    function QueryCurrentUserRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return QueryCurrentUserRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.QueryCurrentUserRequest = QueryCurrentUserRequest;
var QueryCurrentUserResponse = /** @class */ (function () {
    function QueryCurrentUserResponse() {
    }
    return QueryCurrentUserResponse;
}());
exports.QueryCurrentUserResponse = QueryCurrentUserResponse;
var QueryRecordByIdRequest = /** @class */ (function (_super) {
    __extends(QueryRecordByIdRequest, _super);
    function QueryRecordByIdRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return QueryRecordByIdRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.QueryRecordByIdRequest = QueryRecordByIdRequest;
var QueryRecordByIdResponse = /** @class */ (function () {
    function QueryRecordByIdResponse() {
    }
    return QueryRecordByIdResponse;
}());
exports.QueryRecordByIdResponse = QueryRecordByIdResponse;
var FindLotRolesRequest = /** @class */ (function (_super) {
    __extends(FindLotRolesRequest, _super);
    function FindLotRolesRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return FindLotRolesRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.FindLotRolesRequest = FindLotRolesRequest;
var FindListByLotIdPageRequest = /** @class */ (function (_super) {
    __extends(FindListByLotIdPageRequest, _super);
    function FindListByLotIdPageRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return FindListByLotIdPageRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.FindListByLotIdPageRequest = FindListByLotIdPageRequest;
var SaveLogRequest = /** @class */ (function (_super) {
    __extends(SaveLogRequest, _super);
    function SaveLogRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return SaveLogRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.SaveLogRequest = SaveLogRequest;
var FindListByLotIdPageResponse = /** @class */ (function () {
    function FindListByLotIdPageResponse() {
    }
    return FindListByLotIdPageResponse;
}());
exports.FindListByLotIdPageResponse = FindListByLotIdPageResponse;
var FindLotRolesResponse = /** @class */ (function () {
    function FindLotRolesResponse() {
    }
    return FindLotRolesResponse;
}());
exports.FindLotRolesResponse = FindLotRolesResponse;
var Recharge3rdByUnityRequest = /** @class */ (function (_super) {
    __extends(Recharge3rdByUnityRequest, _super);
    function Recharge3rdByUnityRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Recharge3rdByUnityRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.Recharge3rdByUnityRequest = Recharge3rdByUnityRequest;
var QueryLotMer4UnityRequest = /** @class */ (function (_super) {
    __extends(QueryLotMer4UnityRequest, _super);
    function QueryLotMer4UnityRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return QueryLotMer4UnityRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.QueryLotMer4UnityRequest = QueryLotMer4UnityRequest;
var GetMyBaseInfoRequest = /** @class */ (function (_super) {
    __extends(GetMyBaseInfoRequest, _super);
    function GetMyBaseInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetMyBaseInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetMyBaseInfoRequest = GetMyBaseInfoRequest;
var GetMyBaseInfoReponse = /** @class */ (function () {
    function GetMyBaseInfoReponse() {
    }
    return GetMyBaseInfoReponse;
}());
exports.GetMyBaseInfoReponse = GetMyBaseInfoReponse;
var ModifyCarCardNoRequest = /** @class */ (function (_super) {
    __extends(ModifyCarCardNoRequest, _super);
    function ModifyCarCardNoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ModifyCarCardNoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ModifyCarCardNoRequest = ModifyCarCardNoRequest;
var DelCarCardInfoRequest = /** @class */ (function (_super) {
    __extends(DelCarCardInfoRequest, _super);
    function DelCarCardInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DelCarCardInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.DelCarCardInfoRequest = DelCarCardInfoRequest;
/**
 * 3.2.8车场固定车充值信息上报
 */
var PostCarCardChargeInfoInput = /** @class */ (function (_super) {
    __extends(PostCarCardChargeInfoInput, _super);
    function PostCarCardChargeInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarCardChargeInfoInput;
}(DataPushBase));
exports.PostCarCardChargeInfoInput = PostCarCardChargeInfoInput;
/**
 * 3.2.30 特殊订单上报
 */
var PostSpecPayNotifyInput = /** @class */ (function (_super) {
    __extends(PostSpecPayNotifyInput, _super);
    function PostSpecPayNotifyInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostSpecPayNotifyInput;
}(DataPushBase));
exports.PostSpecPayNotifyInput = PostSpecPayNotifyInput;
/**
 * 3.3.1车场进出场压地感上报
 */
var PostCarCaptureInfoInput = /** @class */ (function (_super) {
    __extends(PostCarCaptureInfoInput, _super);
    function PostCarCaptureInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarCaptureInfoInput;
}(DataPushBase));
exports.PostCarCaptureInfoInput = PostCarCaptureInfoInput;
/**
 * 3.3.3车辆后退上报
 */
var PostCarBackAwayInput = /** @class */ (function (_super) {
    __extends(PostCarBackAwayInput, _super);
    function PostCarBackAwayInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostCarBackAwayInput;
}(DataPushBase));
exports.PostCarBackAwayInput = PostCarBackAwayInput;
var PayCarCardFeeRequest = /** @class */ (function (_super) {
    __extends(PayCarCardFeeRequest, _super);
    function PayCarCardFeeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PayCarCardFeeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.PayCarCardFeeRequest = PayCarCardFeeRequest;
var RefundCarCardFeeRequest = /** @class */ (function (_super) {
    __extends(RefundCarCardFeeRequest, _super);
    function RefundCarCardFeeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return RefundCarCardFeeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.RefundCarCardFeeRequest = RefundCarCardFeeRequest;
var AuditCardRechargeRequest = /** @class */ (function (_super) {
    __extends(AuditCardRechargeRequest, _super);
    function AuditCardRechargeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return AuditCardRechargeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.AuditCardRechargeRequest = AuditCardRechargeRequest;
var RechargeInvoiceRequest = /** @class */ (function (_super) {
    __extends(RechargeInvoiceRequest, _super);
    function RechargeInvoiceRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return RechargeInvoiceRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.RechargeInvoiceRequest = RechargeInvoiceRequest;
var ModifyCardStatusRequest = /** @class */ (function (_super) {
    __extends(ModifyCardStatusRequest, _super);
    function ModifyCardStatusRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ModifyCardStatusRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ModifyCardStatusRequest = ModifyCardStatusRequest;
/**
 * 2.4.1用户车位预订
 */
var ReserveSpaceRequest = /** @class */ (function (_super) {
    __extends(ReserveSpaceRequest, _super);
    function ReserveSpaceRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ReserveSpaceRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ReserveSpaceRequest = ReserveSpaceRequest;
/**
 * 2.4.2修改预约车有效期
 */
var ReserveSpaceChangeTimeRequest = /** @class */ (function (_super) {
    __extends(ReserveSpaceChangeTimeRequest, _super);
    function ReserveSpaceChangeTimeRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ReserveSpaceChangeTimeRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.ReserveSpaceChangeTimeRequest = ReserveSpaceChangeTimeRequest;
/**
 * 2.4.3车位预订取消接口
 */
var CancelReserveSpaceRequest = /** @class */ (function (_super) {
    __extends(CancelReserveSpaceRequest, _super);
    function CancelReserveSpaceRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return CancelReserveSpaceRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.CancelReserveSpaceRequest = CancelReserveSpaceRequest;
/**
 * 2.4.4预订车位查询接口
 */
var GetReservableInfoRequest = /** @class */ (function (_super) {
    __extends(GetReservableInfoRequest, _super);
    function GetReservableInfoRequest() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetReservableInfoRequest;
}(TyApiCommon_1.ApiRequestBase));
exports.GetReservableInfoRequest = GetReservableInfoRequest;
/**
 * 2.5.17 获取计费详情 请求参数
 */
var GetFeeDetailReq = /** @class */ (function (_super) {
    __extends(GetFeeDetailReq, _super);
    function GetFeeDetailReq() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GetFeeDetailReq;
}(TyApiCommon_1.ApiRequestBase));
exports.GetFeeDetailReq = GetFeeDetailReq;
/**
 * 2.5.17 获取计费详情 返回参数
 */
var GetFeeDetailRes = /** @class */ (function () {
    function GetFeeDetailRes() {
    }
    return GetFeeDetailRes;
}());
exports.GetFeeDetailRes = GetFeeDetailRes;
/**
 * 3.2.12设备告警信息上报
 */
var PostDeviceAlarmInfoInput = /** @class */ (function (_super) {
    __extends(PostDeviceAlarmInfoInput, _super);
    function PostDeviceAlarmInfoInput() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return PostDeviceAlarmInfoInput;
}(DataPushBase));
exports.PostDeviceAlarmInfoInput = PostDeviceAlarmInfoInput;
//# sourceMappingURL=TyExternalApi.js.map