/*
 * ST_FUNDINSTR.h - st 서비스 ST_FUNDINSTR 카피북 (copybook / record header).
 * 펀딩 지시 생성/확인: st_merchant_funding.deposit 를 은행 rails(FIRMBANK)로 지급
 * 지시 → st_funding_instr 적재. deposit<=0 이면 RETURNED(반환).
 * Request  fields: T_MERCHANT, T_BIZDATE
 * Response fields: T_AMT1(amount), T_STATUS(status), T_ID1(instr_id)
 */
#ifndef ST_FUNDINSTR_H
#define ST_FUNDINSTR_H

#include "st_svc.h"

typedef struct {
    long instr_id;
    char merchant_id[64];
    char biz_date[16];
    char bank_code[16];
    char account_no[24];
    long amount;        /* 지급액(펀딩 deposit) */
    char rail[16];      /* FIRMBANK/ACH/RTGS */
    char status[16];    /* SENT/CONFIRMED/RETURNED */
} st_fundinstr_rec_t;

void ST_FUNDINSTR(TPSVCINFO *p);

#endif /* ST_FUNDINSTR_H */
