/*
 * ACQ_PRESENT.h - ac 서비스 ACQ_PRESENT 카피북 (copybook / record header).
 * 프레젠트먼트(클리어링) 생성: 승인·정산과 분리된 데이터 교환 단계.
 * clearing_amt = amount − interchange (발급사 귀속분 차감 후 매입사 클리어링액).
 * Request fields:  T_PURCHASE_ID, [T_STR1(scheme), T_AMOUNT, T_AMT1(interchange), T_BIZDATE]
 * Response fields: T_ID1(presentment_id), T_AMT1(clearing_amt), T_STATUS='CLEARED', T_FEE(ic)
 */
#ifndef ACQ_PRESENT_H
#define ACQ_PRESENT_H

#include "ac_svc.h"

typedef struct {
    long presentment_id;
    long purchase_id;
    char scheme[16];
    char msg_class[24];  /* FIRST_PRESENT / REPRESENT */
    long clearing_amt;
    char present_date[16];
    char cycle[12];      /* T+1 */
    char status[16];     /* CLEARED */
} cl_presentment_rec_t;

void ACQ_PRESENT(TPSVCINFO *p);

#endif /* ACQ_PRESENT_H */
