import { OverseasServiceList, OverseasQueryType, DomesticQueryType, DomesticTradeType } from '../enums'; export interface DomesticPayParameters { amount: string; barcode1: string; barcode2: string; barcode3: string; barcode4: string; barcode5: string; merchantid: string; /** * Recommended format: `YYYYMMDD` */ merchanttradedate: string; /** * Recommended format: `YYYYMMDDHHmmssSSS` */ merchanttradeno: string; /** * Recommended format: `HHmmss` */ merchanttradetime: string; orderextrainfo1: string; orderextrainfo2: string; orderextrainfo3: string; orderitem: string; remark1: string; remark2: string; remark3: string; storeid: string; storename: string; terminalid: string; } export interface DomesticRefundParameters extends DomesticPayParameters { servicetradeno: string; } export interface DomesticQueryParameters { querytype: DomesticQueryType; merchantid: string; /** * Recommended format: `YYYYMMDDHHmmssSSS` */ tradeno: string; barcode1: string; storeid: string; terminalid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ merchantquerydatetime: string; /** * Recommended format: `YYYYMMDD` */ merchanttradedate: string; /** * Recommended format: `HHmmss` */ merchanttradetime: string; tradetype: DomesticTradeType; } export interface OverseasPayParameters { amount: string; barcode: string; gw: OverseasServiceList; merchantid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ orderid: string; ordermemo: string; ordername: string; storeid: string; terminalid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ timestamp: string; } export interface OverseasRefundParameters { amount: string; gw: OverseasServiceList; merchantid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ orderid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ refundid: string; refundreason: string; storeid: string; terminalid: string; /** * Recommended format: `YYYYMMDDHHmmss` */ timestamp: string; } export interface OverseasQueryParameters { gw: OverseasServiceList; id: string; /** * Recommended format: `YYYYMMDDHHmmss` */ merchantid: string; storeid: string; terminalid: string; timestamp: string; type: OverseasQueryType; } export interface PaymentTokens { token1: string; token2: string; } export interface UserTokens { jwt: string; }