import { HttpService } from '@nestjs/axios'; import { IotSimModuleOptions } from '../interfaces/options.interface'; import { XuyuQueryCardInfoAllResponse, XuyuQueryOpenCardInfoBatchResponse } from '../interfaces/response'; import { BaseResponse } from '../interfaces/response/base.response.interface'; import { XuyuQueryOpenCardInfoSingleResponse } from '../interfaces/response/xuyu/query-open-card-info-single.xuyu.interface'; import { XuyuQueryPastUseGprsSingleResponse } from '../interfaces/response/xuyu/queryPastUseGprsSingle.xuyu.interface'; import { XuyuQueryOwnerInfoAllResponse } from '../interfaces/response/xuyu/query-owner-info-all.xuyu.interface'; import { XuyuQueryStopReasonResponse } from '../interfaces/response/xuyu/query-stop-reason.xuyu.interface'; import { XuyuQueryComboInfoResponse } from '../interfaces/response/xuyu/query-combo-info.xuyu.interface'; import { XuyuPayResponse } from '../interfaces/response/xuyu/pay.xuyu.interface'; export declare class XuyuIotSimService { private readonly options; private readonly httpService; constructor(options: IotSimModuleOptions, httpService: HttpService); private request; /** * 分页获取账户下所有卡信息 * @param page 页码,1开始 * @param isArrearage 是否欠费(到期或余额<=0)0:是;1:否; * @returns 账户下所有卡信息 */ queryCardInfoAll(page: number, isArrearage?: number): Promise>; /** * 获取单卡信息 * @param iccid ICCID * @returns 单卡信息 */ queryOpenCardInfoSingle(iccid: number): Promise>; /** * 批量获取卡信息 * @param iccidList ICCID列表 * @returns 卡信息列表 */ queryOpenCardInfoBatch(iccidList: string[]): Promise>; /** * 单卡停复机 * @param iccid ICCID * @param operType 停复机类型:0停机;1复机 * @returns 停复机结果 */ updateCardStatusSingle(iccid: string, operType: string): Promise>>; /** * 查询过去七天内某日用量 * @param iccid ICCID * @param dateStr 日期字符 YYYYMMdd * @returns 用量查询结果 */ queryPastUseGprsSingle(iccid: string, dateStr: string): Promise>; /** * 查询停机原因 * @param iccid ICCID * @returns 停机原因 */ queryStopReason(iccid: string): Promise>; /** * 获取账户下所有群组信息 * @param isLast 是否上月数据,0:是;1:否; * @returns 账户下所有群组信息 */ queryOwnerInfoAll(isLast?: number): Promise>; /** * 获取账户下套餐 * @returns 账户下套餐 */ queryComboInfo(): Promise>; /** * 充值并自动激活 * @param iccid ICCID * @param comboId 套餐id * @param accountType 到账类型:1立即到账;2次月初到账(移动电信1号到账,联通27号到账) * @returns 充值结果 */ pay(iccid: string, comboId: string, accountType: string): Promise>; }