node-easywechat
Version:
EasyWechat SDK for Node.js (NOT OFFICIAL)
36 lines (35 loc) • 748 B
TypeScript
import { PrivateKey } from "../../Core/Support/PrivateKey";
import { PublicKey } from "../../Core/Support/PublicKey";
declare abstract class MerchantInterface {
/**
* 获取merchant_id
* @returns
*/
getMerchantId(): string;
/**
* 获取证书私钥
*/
getPrivateKey(): PrivateKey;
/**
* 获取secret_key
* @returns
*/
getSecretKey(): string;
/**
* 获取secret_key(V2版本)
* @returns
*/
getV2SecretKey(): string;
/**
* 获取证书
* @returns
*/
getCertificate(): PublicKey;
/**
* 获取平台证书
* @param serial
* @returns
*/
getPlatformCert(serial: string): PublicKey;
}
export = MerchantInterface;