import { CurrencyType, ChannelType } from "./global"; export declare namespace Retail { namespace Passive { interface RequestInterface { description: string; price: number; currency?: CurrencyType; notify_url?: string; device_id: string; auth_code: string; } enum ResultCodeType { PAYING = "PAYING", CREATE_FAIL = "CREATE_FAIL", CLOSED = "CLOSED", PAY_FAIL = "PAY_FAIL", PAY_SUCCESS = "PAY_SUCCESS" } enum ErrorCodeType { ORDER_MISMATCH = "ORDER_MISMATCH", ORDER_PAID = "ORDER_PAID", AUTHCODEEXPIRE = "AUTHCODEEXPIRE", NOTENOUGH = "NOTENOUGH", NOTSUPORTCARD = "NOTSUPORTCARD", AUTH_CODE_ERROR = "AUTH_CODE_ERROR", AUTH_CODE_INVALID = "AUTH_CODE_INVALID", 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; input_fee: number; create_time: string; real_fee: number; total_fee: number; order_description: string; channel: ChannelType; result_code: ResultCodeType; currency: CurrencyType; customer_id: string; return_code: string; order_id: string; } interface ErrorResponseInterface { return_code: ErrorCodeType; return_msg: string; } type ResponseType = SuccessResponseInterface | ErrorResponseInterface; } namespace Active { interface RequestInterface { description: string; price: number; currency?: CurrencyType; notify_url?: string; device_id: string; operator?: 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; code_url: string; partner_name: string; result_code: ResultCodeType; partner_code: string; order_id: string; return_code: ResultCodeType; qrcode_img: string; } interface ErrorResponseInterface { return_code: string; return_msg: string; } type ResponseType = SuccessResponseInterface | ErrorResponseInterface; } }