"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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.GetCarInfoByNodeIdRequest = exports.GetNodeCarInfoRequest = exports.GetDeviceStatusRequest = exports.GetFreeSpaceNumResponse = exports.GetFreeSpaceNumRequest = exports.QueryCarInfoRequest = exports.GetDeviceListRequest = exports.GetParkingNodeResponse = exports.GetParkingNodeRequest = exports.AddCarCardNoRequest = exports.GetCarCardInfoResponse = exports.GetCarCardInfoRequest = exports.PostStcPayResultInput = exports.PostRefundNotify = 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.ApiResponse = exports.ApiRequestBase = void 0;
exports.ChannelSendReuqst = exports.ReqBookingRefund = exports.ReStatisticsRequest = exports.ModifyValidTimeRequest = exports.PushServiceDateRequest = exports.CarLeaveRequest = 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 = void 0;
/**
 * 统一接口请求基类
 */
class ApiRequestBase {
}
exports.ApiRequestBase = ApiRequestBase;
/**
 * 统一接口返回值
 */
class ApiResponse {
    constructor(resCode, resMsg, data) {
        this.resCode = resCode;
        this.resMsg = resMsg;
        this.data = data;
    }
    static isSuccess(res) {
        return (res === null || res === void 0 ? void 0 : res.resCode) === "0" || (res === null || res === void 0 ? void 0 : res.resCode) === 0;
    }
    static successWithData(data) {
        return new ApiResponse("0", null, data);
    }
    static successWithResMsg(resMsg) {
        return new ApiResponse("0", resMsg);
    }
    static failed(resMsg) {
        return new ApiResponse("-1", resMsg);
    }
}
exports.ApiResponse = ApiResponse;
ApiResponse.success = new ApiResponse("0");
class GetConfigInfoResponse {
}
exports.GetConfigInfoResponse = GetConfigInfoResponse;
class GetParkingPaymentInfoRequest extends ApiRequestBase {
}
exports.GetParkingPaymentInfoRequest = GetParkingPaymentInfoRequest;
class PayParkingFeeRequest extends ApiRequestBase {
}
exports.PayParkingFeeRequest = PayParkingFeeRequest;
class SyncChargePilePayRequest extends ApiRequestBase {
}
exports.SyncChargePilePayRequest = SyncChargePilePayRequest;
class UnlicensedCarInoutRequest extends ApiRequestBase {
}
exports.UnlicensedCarInoutRequest = UnlicensedCarInoutRequest;
class SigningRequest extends ApiRequestBase {
}
exports.SigningRequest = SigningRequest;
/**
 * 数据上报基类
 */
class DataPushBase {
}
class PostPaymentInput extends DataPushBase {
}
exports.PostPaymentInput = PostPaymentInput;
/**
 * 3.2.1
 * 进场上报
 */
class PostCarInInfoInput extends DataPushBase {
}
exports.PostCarInInfoInput = PostCarInInfoInput;
/**
 * 3.2.2
 * 出场上报
 */
class PostCarOutInfoInput extends DataPushBase {
}
exports.PostCarOutInfoInput = PostCarOutInfoInput;
/**
 * 3.2.3缴费记录上报
 */
class PostPayFeeInfoInput extends DataPushBase {
    /**
     * 获取优惠金额，单位分
     * 不能直接从字段freeMoney取
     * @param input
     * @returns
     */
    static getFreeMoney(input) {
        return (([1010, 1012, 1013, 1014].includes(input.payMethod)
            ? input.paidMoney
            : 0) + input.freeMoney);
    }
    /**
     * 获取实收金额，单位分
     * 不能直接从字段paidMoney取
     * @param input
     */
    static getPaidMoney(input) {
        return [1010, 1012, 1013, 1014].includes(input.payMethod)
            ? 0
            : input.paidMoney;
    }
}
exports.PostPayFeeInfoInput = PostPayFeeInfoInput;
/**
 * 3.2.4空闲车位上报
 */
class PostFreeParkingSpaceInput extends DataPushBase {
}
exports.PostFreeParkingSpaceInput = PostFreeParkingSpaceInput;
/**
 * 3.2.5设备状态上报
 */
class PostDeviceStateInput extends DataPushBase {
}
exports.PostDeviceStateInput = PostDeviceStateInput;
/**
 * 3.2.6修改车牌信息上报
 */
class PostModifyPlateNoInput extends DataPushBase {
}
exports.PostModifyPlateNoInput = PostModifyPlateNoInput;
/**
 * 3.2.7车场固定车信息上报
 */
class PostCarCardInfoInput extends DataPushBase {
}
exports.PostCarCardInfoInput = PostCarCardInfoInput;
/**
 *
 * 进出车位上报
 */
class PostBusInOutInput extends DataPushBase {
}
exports.PostBusInOutInput = PostBusInOutInput;
/**
 * 3.2.10车场交班信息上报
 */
class PostShiftWorkInfoInput extends DataPushBase {
}
exports.PostShiftWorkInfoInput = PostShiftWorkInfoInput;
/**
 * 3.2.23退款订单上报第三方
 */
class PostRefundNotify extends DataPushBase {
}
exports.PostRefundNotify = PostRefundNotify;
/**
 * 3.4.1速停车缴费成功推送
 */
class PostStcPayResultInput extends DataPushBase {
}
exports.PostStcPayResultInput = PostStcPayResultInput;
class GetCarCardInfoRequest extends ApiRequestBase {
}
exports.GetCarCardInfoRequest = GetCarCardInfoRequest;
class GetCarCardInfoResponse {
}
exports.GetCarCardInfoResponse = GetCarCardInfoResponse;
class AddCarCardNoRequest extends ApiRequestBase {
}
exports.AddCarCardNoRequest = AddCarCardNoRequest;
class GetParkingNodeRequest extends ApiRequestBase {
}
exports.GetParkingNodeRequest = GetParkingNodeRequest;
class GetParkingNodeResponse {
}
exports.GetParkingNodeResponse = GetParkingNodeResponse;
class GetDeviceListRequest extends ApiRequestBase {
    constructor() {
        super(...arguments);
        this.deviceType = 0;
    }
}
exports.GetDeviceListRequest = GetDeviceListRequest;
class QueryCarInfoRequest extends ApiRequestBase {
}
exports.QueryCarInfoRequest = QueryCarInfoRequest;
class GetFreeSpaceNumRequest extends ApiRequestBase {
}
exports.GetFreeSpaceNumRequest = GetFreeSpaceNumRequest;
class GetFreeSpaceNumResponse {
}
exports.GetFreeSpaceNumResponse = GetFreeSpaceNumResponse;
class GetDeviceStatusRequest extends ApiRequestBase {
    constructor() {
        super(...arguments);
        this.deviceType = 0;
    }
}
exports.GetDeviceStatusRequest = GetDeviceStatusRequest;
class GetNodeCarInfoRequest extends ApiRequestBase {
}
exports.GetNodeCarInfoRequest = GetNodeCarInfoRequest;
class GetCarInfoByNodeIdRequest extends ApiRequestBase {
}
exports.GetCarInfoByNodeIdRequest = GetCarInfoByNodeIdRequest;
class GetCarInfoByNodeIdResponse {
}
exports.GetCarInfoByNodeIdResponse = GetCarInfoByNodeIdResponse;
class RemoteOpenRequest extends ApiRequestBase {
}
exports.RemoteOpenRequest = RemoteOpenRequest;
class ModifyCarInfoRequest extends ApiRequestBase {
}
exports.ModifyCarInfoRequest = ModifyCarInfoRequest;
class AddVirtualTrafficRequest extends ApiRequestBase {
}
exports.AddVirtualTrafficRequest = AddVirtualTrafficRequest;
/**
 * 2.7.16进出场重新抓拍接口入参
 */
class RecaptureRequest extends ApiRequestBase {
}
exports.RecaptureRequest = RecaptureRequest;
class AddCarBlackInfoRequest extends ApiRequestBase {
}
exports.AddCarBlackInfoRequest = AddCarBlackInfoRequest;
class ModifyCarBlackInfoRequest extends ApiRequestBase {
}
exports.ModifyCarBlackInfoRequest = ModifyCarBlackInfoRequest;
class DelCarBlackInfoRequest extends ApiRequestBase {
}
exports.DelCarBlackInfoRequest = DelCarBlackInfoRequest;
class QueryCarBlackInfoRequest extends ApiRequestBase {
}
exports.QueryCarBlackInfoRequest = QueryCarBlackInfoRequest;
class LockCarplateRequest extends ApiRequestBase {
}
exports.LockCarplateRequest = LockCarplateRequest;
class UnlockCarplateRequest extends ApiRequestBase {
}
exports.UnlockCarplateRequest = UnlockCarplateRequest;
class QueryCurrentUserRequest extends ApiRequestBase {
}
exports.QueryCurrentUserRequest = QueryCurrentUserRequest;
class QueryCurrentUserResponse {
}
exports.QueryCurrentUserResponse = QueryCurrentUserResponse;
class QueryRecordByIdRequest extends ApiRequestBase {
}
exports.QueryRecordByIdRequest = QueryRecordByIdRequest;
class QueryRecordByIdResponse {
}
exports.QueryRecordByIdResponse = QueryRecordByIdResponse;
class FindLotRolesRequest extends ApiRequestBase {
}
exports.FindLotRolesRequest = FindLotRolesRequest;
class FindListByLotIdPageRequest extends ApiRequestBase {
}
exports.FindListByLotIdPageRequest = FindListByLotIdPageRequest;
class SaveLogRequest extends ApiRequestBase {
}
exports.SaveLogRequest = SaveLogRequest;
class FindListByLotIdPageResponse {
}
exports.FindListByLotIdPageResponse = FindListByLotIdPageResponse;
class FindLotRolesResponse {
}
exports.FindLotRolesResponse = FindLotRolesResponse;
class Recharge3rdByUnityRequest extends ApiRequestBase {
}
exports.Recharge3rdByUnityRequest = Recharge3rdByUnityRequest;
class QueryLotMer4UnityRequest extends ApiRequestBase {
}
exports.QueryLotMer4UnityRequest = QueryLotMer4UnityRequest;
class GetMyBaseInfoRequest extends ApiRequestBase {
}
exports.GetMyBaseInfoRequest = GetMyBaseInfoRequest;
class GetMyBaseInfoReponse {
}
exports.GetMyBaseInfoReponse = GetMyBaseInfoReponse;
class ModifyCarCardNoRequest extends ApiRequestBase {
}
exports.ModifyCarCardNoRequest = ModifyCarCardNoRequest;
class DelCarCardInfoRequest extends ApiRequestBase {
}
exports.DelCarCardInfoRequest = DelCarCardInfoRequest;
/**
 * 3.2.8车场固定车充值信息上报
 */
class PostCarCardChargeInfoInput extends DataPushBase {
}
exports.PostCarCardChargeInfoInput = PostCarCardChargeInfoInput;
/**
 * 3.2.30 特殊订单上报
 */
class PostSpecPayNotifyInput extends DataPushBase {
}
exports.PostSpecPayNotifyInput = PostSpecPayNotifyInput;
/**
 * 3.3.1车场进出场压地感上报
 */
class PostCarCaptureInfoInput extends DataPushBase {
}
exports.PostCarCaptureInfoInput = PostCarCaptureInfoInput;
/**
 * 3.3.3车辆后退上报
 */
class PostCarBackAwayInput extends DataPushBase {
}
exports.PostCarBackAwayInput = PostCarBackAwayInput;
class PayCarCardFeeRequest extends ApiRequestBase {
}
exports.PayCarCardFeeRequest = PayCarCardFeeRequest;
class RefundCarCardFeeRequest extends ApiRequestBase {
}
exports.RefundCarCardFeeRequest = RefundCarCardFeeRequest;
class AuditCardRechargeRequest extends ApiRequestBase {
}
exports.AuditCardRechargeRequest = AuditCardRechargeRequest;
class RechargeInvoiceRequest extends ApiRequestBase {
}
exports.RechargeInvoiceRequest = RechargeInvoiceRequest;
class ModifyCardStatusRequest extends ApiRequestBase {
}
exports.ModifyCardStatusRequest = ModifyCardStatusRequest;
/**
 * 2.4.1用户车位预订
 */
class ReserveSpaceRequest extends ApiRequestBase {
}
exports.ReserveSpaceRequest = ReserveSpaceRequest;
/**
 * 2.4.2修改预约车有效期
 */
class ReserveSpaceChangeTimeRequest extends ApiRequestBase {
}
exports.ReserveSpaceChangeTimeRequest = ReserveSpaceChangeTimeRequest;
/**
 * 2.4.3车位预订取消接口
 */
class CancelReserveSpaceRequest extends ApiRequestBase {
}
exports.CancelReserveSpaceRequest = CancelReserveSpaceRequest;
/**
 * 2.4.4预订车位查询接口
 */
class GetReservableInfoRequest extends ApiRequestBase {
}
exports.GetReservableInfoRequest = GetReservableInfoRequest;
/**
 * 2.5.17 获取计费详情 请求参数
 */
class GetFeeDetailReq extends ApiRequestBase {
}
exports.GetFeeDetailReq = GetFeeDetailReq;
/**
 * 2.5.17 获取计费详情 返回参数
 */
class GetFeeDetailRes {
}
exports.GetFeeDetailRes = GetFeeDetailRes;
/**
 * 3.2.12设备告警信息上报
 */
class PostDeviceAlarmInfoInput extends DataPushBase {
}
exports.PostDeviceAlarmInfoInput = PostDeviceAlarmInfoInput;
class CarLeaveRequest extends ApiRequestBase {
}
exports.CarLeaveRequest = CarLeaveRequest;
class PushServiceDateRequest extends ApiRequestBase {
}
exports.PushServiceDateRequest = PushServiceDateRequest;
class ModifyValidTimeRequest extends ApiRequestBase {
}
exports.ModifyValidTimeRequest = ModifyValidTimeRequest;
class ReStatisticsRequest extends ApiRequestBase {
    constructor() {
        super(...arguments);
        this.serviceCode = 'InnerReStatistics';
    }
}
exports.ReStatisticsRequest = ReStatisticsRequest;
class ReqBookingRefund extends ApiRequestBase {
    constructor() {
        super(...arguments);
        this.serviceCode = 'parkingBookingRefundCallback';
    }
}
exports.ReqBookingRefund = ReqBookingRefund;
class ChannelSendReuqst extends ApiRequestBase {
}
exports.ChannelSendReuqst = ChannelSendReuqst;
