UNPKG

@yeepay/yop-typescript-sdk

Version:

TypeScript SDK for interacting with YOP (YeePay Open Platform)

26 lines (25 loc) 560 B
export interface RequestOptions { appKey: string; appPrivateKey: string; serverRoot?: string; yopPublicKey?: string; config?: { contentType: string; }; } export interface AuthHeaderOptions extends RequestOptions { method: 'GET' | 'POST'; url: string; params?: Record<string, unknown>; } export interface RequestParams { url: string; params?: Record<string, unknown>; method: 'GET' | 'POST'; } export interface ParamMap { [key: string]: unknown; } export interface Request { paramMap: ParamMap; }