/*
 * ACQ_TOPMERCH.h - ac 서비스 ACQ_TOPMERCH 카피북 (copybook / record header).
 * 상위 가맹점 조회 레코드.
 * Request fields:  T_BIZDATE, T_ARG1(상위 N; 1..10, 기본 5)
 * Response fields: T_COUNT, T_GROSS, T_KEY1/T_AMT2(occ 0..N-1)
 */
#ifndef ACQ_TOPMERCH_H
#define ACQ_TOPMERCH_H

#include "ac_svc.h"

typedef struct {
    char biz_date[16];
    long topn;
    long got;
    long top_sum;         /* 상위권 매출 합계 */
    char merchants[10][64];
    long amounts[10];
} ac_topmerch_rec_t;

void ACQ_TOPMERCH(TPSVCINFO *p);

#endif /* ACQ_TOPMERCH_H */
