/*
 * AUTH_DUP_CHK.h - au 서비스 AUTH_DUP_CHK 카피북 (copybook / record header).
 * Request fields:  T_KEY1(카드번호), T_MERCHANT(가맹점), T_AMOUNT(금액)
 * Response fields: T_RC(0=중복 없음, 1=중복승인 의심), T_ID1(직전 중복 승인번호),
 *                  T_ARG1(5분내 동일거래 건수)
 */
#ifndef AUTH_DUP_CHK_H
#define AUTH_DUP_CHK_H

#include "au_svc.h"

typedef struct {
    char card_no[24];
    char merchant_id[64];
    long amount;
    long dup_count;
    long last_dup_auth;
} au_auth_dup_chk_rec_t;

void AUTH_DUP_CHK(TPSVCINFO *p);

#endif /* AUTH_DUP_CHK_H */
