import { CurrencyType, ChannelType, SystemType } from "./global"; export declare namespace SDK { interface RequestInterface { description: string; price: number; currency?: CurrencyType; channel?: ChannelType; notify_url?: string; operator?: string; system?: SystemType; version?: string; appid?: string; } enum ResultCodeType { SUCCESS = "SUCCESS", EXISTS = "EXISTS" } enum ErrorCodeType { ORDER_MISMATCH = "ORDER_MISMATCH", ORDER_PAID = "ORDER_PAID", SYSTEMERROR = "SYSTEMERROR", INVALID_SHORT_ID = "INVALID_SHORT_ID", SIGN_TIMEOUT = "SIGN_TIMEOUT", INVALID_SIGN = "INVALID_SIGN", PARAM_INVALID = "PARAM_INVALID", NOT_PERMITTED = "NOT_PERMITTED", INVALID_CHANNEL = "INVALID_CHANNEL" } interface SuccessResponseInterface { partner_order_id: string; full_name: string; partner_name: string; channel: string; sdk_params: object; result_code: ResultCodeType; partner_code: string; order_id: string; return_code: ResultCodeType; } interface ErrorResponseInterface { return_code: string; return_msg: string; } type ResponseType = SuccessResponseInterface | ErrorResponseInterface; }