/*
 * APPROVAL_RATE.h - au 서비스 APPROVAL_RATE 카피북 (copybook / record header).
 * Request fields:  T_MERCHANT(가맹점), T_BIZDATE(영업일)
 * Response fields: T_ARG1(승인율 bps), T_COUNT(총 접수건수), T_ARG2(승인건수),
 *                  T_RC(0=정상, 1=승인율 80% 미만 경보)
 */
#ifndef APPROVAL_RATE_H
#define APPROVAL_RATE_H

#include "au_svc.h"

typedef struct {
    char merchant_id[64];
    char biz_date[16];
    long rate_bps;
    long attempts;
    long approved;
} au_approval_rate_rec_t;

void APPROVAL_RATE(TPSVCINFO *p);

#endif /* APPROVAL_RATE_H */
