/*
 * PAY_ADVCALC.h - py 서비스 PAY_ADVCALC 카피북 (copybook / record header).
 * Request fields:  T_MERCHANT, T_ARG1(지급률 bps, 기본 8000)
 * Response fields: T_GROSS(미지급 잔액), T_AMT1(선지급 가능액), T_AMT2(선지급 잔액)
 */
#ifndef PAY_ADVCALC_H
#define PAY_ADVCALC_H

#include "py_svc.h"

typedef struct {
    char merchant_id[64];
    long pending_net;
    long advance_out;
    long available;
} py_advcalc_rec_t;

void PAY_ADVCALC(TPSVCINFO *p);

#endif /* PAY_ADVCALC_H */
