/*
 * ACQ_DISPUTE_OPEN.h - ac 서비스 ACQ_DISPUTE_OPEN 카피북 (copybook / record header).
 * 채그백/분쟁 개시: 매입 1건에 대해 ac_dispute 를 FIRST_CB/OPEN 으로 연다.
 * Request fields:  T_PURCHASE_ID, T_STR1(reason_code), [T_AMOUNT, T_MERCHANT, T_BIZDATE]
 * Response fields: T_ID1(dispute_id), T_STATUS='FIRST_CB', T_AMOUNT, T_COUNT, T_ARG1(tier)
 */
#ifndef ACQ_DISPUTE_OPEN_H
#define ACQ_DISPUTE_OPEN_H

#include "ac_svc.h"

typedef struct {
    long dispute_id;
    long purchase_id;
    char merchant_id[64];
    char reason_code[64];
    long amount;
    char stage[16];   /* FIRST_CB */
    char status[16];  /* OPEN */
} ac_dispute_rec_t;

void ACQ_DISPUTE_OPEN(TPSVCINFO *p);

#endif /* ACQ_DISPUTE_OPEN_H */
