linkpay-api
Version:
LinkPay JS/TS API SDK
26 lines (25 loc) • 892 B
TypeScript
import type { HttpMethod } from './base';
export declare class Signature {
httpMethod: HttpMethod;
/** URL path + URL parameters. */
urlString: string;
/**
* Time to be sent in the request. The format is
YYYY-MM-DDThh:mm:ss+hh:00. Such as 2020-03-04T15:39:40+08:00.
*/
dateTime: string;
/** Key assigned by EVO Cloud for signing / verifying. */
key: string;
/**
* The suggested value is UUID or GUID to mark this request, such
2d21a5715c034efb7e0aa383b885fc7a. Do not exceed 32 characters in length.
*/
msgID: string;
/** All the parameters that you want to send in request body. */
httpBody: string;
constructor(httpMethod: HttpMethod, urlString: string, key: string, httpBody?: object);
toString(): string;
sha256(): string;
sha512(): string;
}
export default Signature;