📄 cs.h
字号:
/*
* This is a part of the Application Preconsole
* - Service Provide - ABIS.
* Copyright (C) 2000-2000 ABC.SDC.
* All rights reserved.
*
* This source code is only intended as a supplement to the
* Application Preconsole Reference and related
* electronic documentation provided with the library.
* See these sources for detailed information regarding the
* Application Preconsole product.
*
* Update record:
* 2001-08-02 HLW - create private declaration file
* Xiaomin Chen for card service
*/
#ifndef __CS_H__
#define __CS_H__
/*
* Constant macros defined in this file
*/
/*
* Length constant macros
*/
#define LEN_SETTLEID 8
#define LEN_TRACK2 AP_LEN_TRACK2
#define LEN_TRACK3 AP_LEN_TRACK3
#define LEN_EXPDATE AP_LEN_EXPDATE
#define LEN_AUTHCODE AP_LEN_AUTHCODE
#define LEN_MERCHNO AP_LEN_MERCHNO
#define LEN_ACCPWD AP_LEN_ACCPWD
#define LEN_ACCNAME AP_LEN_ACCNAME
#define LEN_CERTTYPE AP_LEN_CERTTYPE
#define LEN_CERTNO AP_LEN_CERTNO
/*
* Types and structures declared in this file
*/
/*
* Card Service Interface structure
*/
typedef struct tagCSISTRU
{
UINT nChannelType; /* 渠道类型 */
UINT nServiceType; /* 业务类型 */
UINT nReverseFlag; /* 冲正标志 */
UINT nTransCode; /* 交易代码 */
char cDevType; /* 设备类型 */
char szReqId[LEN_ID + 1]; /* 设备标识 */
char szSeqNo[LEN_SEQNO + 1]; /* 流水号 */
char szOrgSeqNo[LEN_SEQNO + 1]; /* 关联交易流水号 */
char szSettleId[LEN_SETTLEID + 1]; /* 对帐标识 */
char szAccNo[LEN_ACCNO + 1]; /* 帐号 */
UINT nAccType; /* 帐户类型 */
double dAmt; /* 金额 */
double dFee; /* 手续费 */
double dIsiFee; /* 与本行交换中心的清算手续费 */
char szTrack2[LEN_TRACK2 + 1]; /* 第二磁道 */
char szTrack3[LEN_TRACK3 + 1]; /* 第三磁道 */
UINT nVerifyFlag; /* 校验标志 */
char szExpDate[LEN_EXPDATE + 1]; /* 有效期 */
char szAuthCode[LEN_AUTHCODE + 1]; /* 授权码 */
char szMerchCode[LEN_MERCHNO + 1]; /* 商户编号 */
char szAccPwd[LEN_ACCPWD + 1]; /* 帐户密码 */
char szAccName[LEN_ACCNAME + 1]; /* 户名 */
char szCertType[LEN_CERTTYPE + 1]; /* 证件类型 */
char szCertNo[LEN_CERTNO + 1]; /* 证件号码 */
char szCurrCode[LEN_CURRCODE + 1]; /* 货币码 */
double dAvailBal; /* 可用余额 */
double dBal; /* 实际余额 */
char szTransferAccNo[LEN_ACCNO + 1]; /* 转帐帐号 */
char szNewAccPwd[LEN_ACCPWD + 1]; /* 帐户新密码*/
double dDsiFee; /* 与区域交换中心的清算手续费 */
double dKickback; /* 商户回扣 */
} CSISTRU;
typedef CSISTRU * PCSISTRU;
typedef const CSISTRU CCSISTRU;
typedef const CSISTRU * PCCSISTRU;
/*
* Functions delcared in this file
*/
/*
* Card service linking function
*/
void LinkCs(PCSISTRU pcsistru, PCXMLSTRU pxmlstruReq, PXMLSTRU pxmlstruResp,
BOOL bIsFinance);
#endif /* __CS_H__ */
/* End of this file */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -