linkpay-api
Version:
LinkPay JS/TS API SDK
27 lines (26 loc) • 837 B
TypeScript
import type Signature from './signature';
export declare enum SignType {
SHA256 = "SHA256",
SHA512 = "SHA512"
}
export declare class HttpHeader {
/** Sign value. */
authorization: string;
/** application/json. */
contentType: string;
/**
* The request time. The format is
YYYY-MM-DDThh:mm:ss+hh:00. Such as 2020-03-04T15:39:40+08:00.
*/
dateTime: string;
/**
* The suggested value is UUID or GUID to mark this request, such as
2d21a5715c034efb7e0aa383b885fc7a. Do not exceed 32 characters in length.
*/
msgID: string;
/** Algorithm for calculating signatures. SHA256 or SHA512. */
signType: SignType;
constructor(signType: SignType, signature: Signature);
toRecord(): Record<string, string>;
}
export default HttpHeader;