/*
 * au_noauth_detect_batch.h - copybook for au_noauth_detect_batch (XA client).
 * 무승인 매입 검출 컨텍스트 + 심각도 헬퍼. Kept in dbio/ for -I resolution.
 */
#ifndef AU_NOAUTH_DETECT_BATCH_H
#define AU_NOAUTH_DETECT_BATCH_H

typedef struct {
    char biz_date[16];
    long purchases;      /* 검사한 매입건수 */
    long suspects;       /* 무승인 의심건수 */
    long suspect_gross;  /* 의심 금액합 */
} au_noauth_detect_ctx_t;

/* 의심비중으로 심각도 판정 (0=CLEAN, 1=MINOR, 2=MAJOR). */
int aub_noauth_severity(long suspects, long purchases);

#endif /* AU_NOAUTH_DETECT_BATCH_H */
