/*
 * AUTH_VERIFY.h - au 서비스 AUTH_VERIFY 카피북 (copybook / record header).
 * 업무: AVS/CVV 검증 + 리스크 판정 (risk_score 산출 → APPROVE/REVIEW/DECLINE).
 * Request fields:  T_PURCHASE_ID(매입 ID), T_STR1(avs_code), T_STR2(cvv_code)
 * Response fields: T_STATUS(decision), T_ARG1(risk_score), T_ID1(vrf_id), T_RC, T_MSG
 */
#ifndef AUTH_VERIFY_H
#define AUTH_VERIFY_H

#include "au_svc.h"

typedef struct {
    long vrf_id;
    long purchase_id;
    char avs_code[8];     /* Y/A/Z/N/U */
    char cvv_code[8];     /* M/N/P/U */
    long risk_score;      /* 0~999 */
    char decision[16];    /* APPROVE / REVIEW / DECLINE */
} au_verify_rec_t;

void AUTH_VERIFY(TPSVCINFO *p);

#endif /* AUTH_VERIFY_H */
