feat: acquire-core full legacy C corpus (~2066 files, build-verified) + generator + inventory
This commit is contained in:
commit
b96cf702ee
2897 changed files with 264970 additions and 0 deletions
38
app/include/ac_core.h
Normal file
38
app/include/ac_core.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* ac_core.h - 매입 모듈 핵심 계약 (레코드/상태/표준 DBIO API)
|
||||
*
|
||||
* 이 모듈의 온라인/배치 프로그램은 SQL 을 직접 다루지 않고 아래 표준
|
||||
* DBIO API 만 호출한다. 구현은 app/dbio/ac_dbio_main.pgc (ECPG).
|
||||
*/
|
||||
#ifndef AC_CORE_H
|
||||
#define AC_CORE_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* 매입 처리 상태코드 */
|
||||
#define AC_ST_RECV "R" /* 접수/수신 */
|
||||
#define AC_ST_DONE "M" /* 처리완료 */
|
||||
#define AC_ST_FAIL "U" /* 불일치/실패 */
|
||||
#define AC_ST_SETTLED "S" /* 정산완료 */
|
||||
|
||||
/* 매입 원장 레코드 (1행) */
|
||||
typedef struct {
|
||||
char key[16]; /* 처리키(승인/거래 번호) PK */
|
||||
char merch_id[16]; /* 가맹점번호 */
|
||||
char card_no[20]; /* 카드번호(마스킹) */
|
||||
long amount; /* 거래금액(원) */
|
||||
char biz_date[9]; /* 영업일 YYYYMMDD */
|
||||
char status[2]; /* 상태코드 */
|
||||
long fee; /* 수수료(원) */
|
||||
} ac_rec_t;
|
||||
|
||||
/* 표준 DBIO API (구현: ac_dbio_main.pgc) */
|
||||
int ac_dbio_connect(const char *target);
|
||||
int ac_dbio_disconnect(void);
|
||||
int ac_rec_insert(const ac_rec_t *rec);
|
||||
int ac_rec_select(const char *key, ac_rec_t *out);
|
||||
int ac_rec_update_status(const char *key, const char *status);
|
||||
long ac_rec_count(const char *biz_date, const char *status);
|
||||
int ac_rec_sum(const char *biz_date, long *out_sum);
|
||||
|
||||
#endif /* AC_CORE_H */
|
||||
11
app/include/ac_cu_0001.h
Normal file
11
app/include/ac_cu_0001.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0001.h - 매입 공통 유틸 선언 (ac_cu_0001.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0001_H
|
||||
#define AC_CU_0001_H
|
||||
|
||||
long ac_cu_0001_fee(long amount, int rate_bp);
|
||||
long ac_cu_0001_round_unit(long amount, long unit);
|
||||
int ac_cu_0001_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0001_H */
|
||||
11
app/include/ac_cu_0002.h
Normal file
11
app/include/ac_cu_0002.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0002.h - 매입 공통 유틸 선언 (ac_cu_0002.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0002_H
|
||||
#define AC_CU_0002_H
|
||||
|
||||
long ac_cu_0002_fee(long amount, int rate_bp);
|
||||
long ac_cu_0002_round_unit(long amount, long unit);
|
||||
int ac_cu_0002_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0002_H */
|
||||
11
app/include/ac_cu_0003.h
Normal file
11
app/include/ac_cu_0003.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0003.h - 매입 공통 유틸 선언 (ac_cu_0003.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0003_H
|
||||
#define AC_CU_0003_H
|
||||
|
||||
long ac_cu_0003_fee(long amount, int rate_bp);
|
||||
long ac_cu_0003_round_unit(long amount, long unit);
|
||||
int ac_cu_0003_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0003_H */
|
||||
11
app/include/ac_cu_0004.h
Normal file
11
app/include/ac_cu_0004.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0004.h - 매입 공통 유틸 선언 (ac_cu_0004.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0004_H
|
||||
#define AC_CU_0004_H
|
||||
|
||||
long ac_cu_0004_fee(long amount, int rate_bp);
|
||||
long ac_cu_0004_round_unit(long amount, long unit);
|
||||
int ac_cu_0004_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0004_H */
|
||||
11
app/include/ac_cu_0005.h
Normal file
11
app/include/ac_cu_0005.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0005.h - 매입 공통 유틸 선언 (ac_cu_0005.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0005_H
|
||||
#define AC_CU_0005_H
|
||||
|
||||
long ac_cu_0005_fee(long amount, int rate_bp);
|
||||
long ac_cu_0005_round_unit(long amount, long unit);
|
||||
int ac_cu_0005_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0005_H */
|
||||
11
app/include/ac_cu_0006.h
Normal file
11
app/include/ac_cu_0006.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0006.h - 매입 공통 유틸 선언 (ac_cu_0006.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0006_H
|
||||
#define AC_CU_0006_H
|
||||
|
||||
long ac_cu_0006_fee(long amount, int rate_bp);
|
||||
long ac_cu_0006_round_unit(long amount, long unit);
|
||||
int ac_cu_0006_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0006_H */
|
||||
11
app/include/ac_cu_0007.h
Normal file
11
app/include/ac_cu_0007.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0007.h - 매입 공통 유틸 선언 (ac_cu_0007.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0007_H
|
||||
#define AC_CU_0007_H
|
||||
|
||||
long ac_cu_0007_fee(long amount, int rate_bp);
|
||||
long ac_cu_0007_round_unit(long amount, long unit);
|
||||
int ac_cu_0007_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0007_H */
|
||||
11
app/include/ac_cu_0008.h
Normal file
11
app/include/ac_cu_0008.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0008.h - 매입 공통 유틸 선언 (ac_cu_0008.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0008_H
|
||||
#define AC_CU_0008_H
|
||||
|
||||
long ac_cu_0008_fee(long amount, int rate_bp);
|
||||
long ac_cu_0008_round_unit(long amount, long unit);
|
||||
int ac_cu_0008_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0008_H */
|
||||
11
app/include/ac_cu_0009.h
Normal file
11
app/include/ac_cu_0009.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0009.h - 매입 공통 유틸 선언 (ac_cu_0009.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0009_H
|
||||
#define AC_CU_0009_H
|
||||
|
||||
long ac_cu_0009_fee(long amount, int rate_bp);
|
||||
long ac_cu_0009_round_unit(long amount, long unit);
|
||||
int ac_cu_0009_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0009_H */
|
||||
11
app/include/ac_cu_0010.h
Normal file
11
app/include/ac_cu_0010.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0010.h - 매입 공통 유틸 선언 (ac_cu_0010.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0010_H
|
||||
#define AC_CU_0010_H
|
||||
|
||||
long ac_cu_0010_fee(long amount, int rate_bp);
|
||||
long ac_cu_0010_round_unit(long amount, long unit);
|
||||
int ac_cu_0010_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0010_H */
|
||||
11
app/include/ac_cu_0011.h
Normal file
11
app/include/ac_cu_0011.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* ac_cu_0011.h - 매입 공통 유틸 선언 (ac_cu_0011.c 구현)
|
||||
*/
|
||||
#ifndef AC_CU_0011_H
|
||||
#define AC_CU_0011_H
|
||||
|
||||
long ac_cu_0011_fee(long amount, int rate_bp);
|
||||
long ac_cu_0011_round_unit(long amount, long unit);
|
||||
int ac_cu_0011_classify(long amount);
|
||||
|
||||
#endif /* AC_CU_0011_H */
|
||||
20
app/include/ac_h_0001.h
Normal file
20
app/include/ac_h_0001.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* ac_h_0001.h - 매입 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AC_H_0001_H
|
||||
#define AC_H_0001_H
|
||||
|
||||
#define AC_H_0001_RC_OK 0
|
||||
#define AC_H_0001_RC_RETRY 1
|
||||
#define AC_H_0001_RC_SKIP 2
|
||||
#define AC_H_0001_RC_ERROR 9
|
||||
|
||||
#define AC_H_0001_LIMIT_DAILY 100000000L
|
||||
#define AC_H_0001_LIMIT_SINGLE 50000000L
|
||||
#define AC_H_0001_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AC_H_0001_CHAN_ONLINE "01"
|
||||
#define AC_H_0001_CHAN_BATCH "02"
|
||||
#define AC_H_0001_CHAN_RECON "03"
|
||||
|
||||
#endif /* AC_H_0001_H */
|
||||
19
app/include/ac_h_0002.h
Normal file
19
app/include/ac_h_0002.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* ac_h_0002.h - 매입 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AC_H_0002_H
|
||||
#define AC_H_0002_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} ac_h_0002_msg_t;
|
||||
|
||||
#define AC_H_0002_MSG_LEN ((int)sizeof(ac_h_0002_msg_t))
|
||||
|
||||
#endif /* AC_H_0002_H */
|
||||
22
app/include/ac_h_0003.h
Normal file
22
app/include/ac_h_0003.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* ac_h_0003.h - 매입 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AC_H_0003_H
|
||||
#define AC_H_0003_H
|
||||
|
||||
/* 매입 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} ac_h_0003_view_t;
|
||||
|
||||
#define AC_H_0003_STATUS_OPEN "O"
|
||||
#define AC_H_0003_STATUS_HOLD "H"
|
||||
#define AC_H_0003_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AC_H_0003_H */
|
||||
13
app/include/ac_h_0004.h
Normal file
13
app/include/ac_h_0004.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* ac_h_0004.h - 매입 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AC_H_0004_H
|
||||
#define AC_H_0004_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int ac_h_0004_check(const char *key, long amount);
|
||||
int ac_h_0004_apply(TXBUF *in, TXBUF *out);
|
||||
long ac_h_0004_eval(long amount, int factor);
|
||||
|
||||
#endif /* AC_H_0004_H */
|
||||
20
app/include/ac_h_0005.h
Normal file
20
app/include/ac_h_0005.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* ac_h_0005.h - 매입 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AC_H_0005_H
|
||||
#define AC_H_0005_H
|
||||
|
||||
#define AC_H_0005_RC_OK 0
|
||||
#define AC_H_0005_RC_RETRY 1
|
||||
#define AC_H_0005_RC_SKIP 2
|
||||
#define AC_H_0005_RC_ERROR 9
|
||||
|
||||
#define AC_H_0005_LIMIT_DAILY 100000000L
|
||||
#define AC_H_0005_LIMIT_SINGLE 50000000L
|
||||
#define AC_H_0005_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AC_H_0005_CHAN_ONLINE "01"
|
||||
#define AC_H_0005_CHAN_BATCH "02"
|
||||
#define AC_H_0005_CHAN_RECON "03"
|
||||
|
||||
#endif /* AC_H_0005_H */
|
||||
19
app/include/ac_h_0006.h
Normal file
19
app/include/ac_h_0006.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* ac_h_0006.h - 매입 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AC_H_0006_H
|
||||
#define AC_H_0006_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} ac_h_0006_msg_t;
|
||||
|
||||
#define AC_H_0006_MSG_LEN ((int)sizeof(ac_h_0006_msg_t))
|
||||
|
||||
#endif /* AC_H_0006_H */
|
||||
22
app/include/ac_h_0007.h
Normal file
22
app/include/ac_h_0007.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* ac_h_0007.h - 매입 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AC_H_0007_H
|
||||
#define AC_H_0007_H
|
||||
|
||||
/* 매입 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} ac_h_0007_view_t;
|
||||
|
||||
#define AC_H_0007_STATUS_OPEN "O"
|
||||
#define AC_H_0007_STATUS_HOLD "H"
|
||||
#define AC_H_0007_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AC_H_0007_H */
|
||||
13
app/include/ac_h_0008.h
Normal file
13
app/include/ac_h_0008.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* ac_h_0008.h - 매입 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AC_H_0008_H
|
||||
#define AC_H_0008_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int ac_h_0008_check(const char *key, long amount);
|
||||
int ac_h_0008_apply(TXBUF *in, TXBUF *out);
|
||||
long ac_h_0008_eval(long amount, int factor);
|
||||
|
||||
#endif /* AC_H_0008_H */
|
||||
20
app/include/ac_h_0009.h
Normal file
20
app/include/ac_h_0009.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* ac_h_0009.h - 매입 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AC_H_0009_H
|
||||
#define AC_H_0009_H
|
||||
|
||||
#define AC_H_0009_RC_OK 0
|
||||
#define AC_H_0009_RC_RETRY 1
|
||||
#define AC_H_0009_RC_SKIP 2
|
||||
#define AC_H_0009_RC_ERROR 9
|
||||
|
||||
#define AC_H_0009_LIMIT_DAILY 100000000L
|
||||
#define AC_H_0009_LIMIT_SINGLE 50000000L
|
||||
#define AC_H_0009_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AC_H_0009_CHAN_ONLINE "01"
|
||||
#define AC_H_0009_CHAN_BATCH "02"
|
||||
#define AC_H_0009_CHAN_RECON "03"
|
||||
|
||||
#endif /* AC_H_0009_H */
|
||||
19
app/include/ac_h_0010.h
Normal file
19
app/include/ac_h_0010.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* ac_h_0010.h - 매입 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AC_H_0010_H
|
||||
#define AC_H_0010_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} ac_h_0010_msg_t;
|
||||
|
||||
#define AC_H_0010_MSG_LEN ((int)sizeof(ac_h_0010_msg_t))
|
||||
|
||||
#endif /* AC_H_0010_H */
|
||||
22
app/include/ac_h_0011.h
Normal file
22
app/include/ac_h_0011.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* ac_h_0011.h - 매입 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AC_H_0011_H
|
||||
#define AC_H_0011_H
|
||||
|
||||
/* 매입 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} ac_h_0011_view_t;
|
||||
|
||||
#define AC_H_0011_STATUS_OPEN "O"
|
||||
#define AC_H_0011_STATUS_HOLD "H"
|
||||
#define AC_H_0011_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AC_H_0011_H */
|
||||
13
app/include/ac_h_0012.h
Normal file
13
app/include/ac_h_0012.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* ac_h_0012.h - 매입 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AC_H_0012_H
|
||||
#define AC_H_0012_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int ac_h_0012_check(const char *key, long amount);
|
||||
int ac_h_0012_apply(TXBUF *in, TXBUF *out);
|
||||
long ac_h_0012_eval(long amount, int factor);
|
||||
|
||||
#endif /* AC_H_0012_H */
|
||||
20
app/include/ac_h_0013.h
Normal file
20
app/include/ac_h_0013.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* ac_h_0013.h - 매입 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AC_H_0013_H
|
||||
#define AC_H_0013_H
|
||||
|
||||
#define AC_H_0013_RC_OK 0
|
||||
#define AC_H_0013_RC_RETRY 1
|
||||
#define AC_H_0013_RC_SKIP 2
|
||||
#define AC_H_0013_RC_ERROR 9
|
||||
|
||||
#define AC_H_0013_LIMIT_DAILY 100000000L
|
||||
#define AC_H_0013_LIMIT_SINGLE 50000000L
|
||||
#define AC_H_0013_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AC_H_0013_CHAN_ONLINE "01"
|
||||
#define AC_H_0013_CHAN_BATCH "02"
|
||||
#define AC_H_0013_CHAN_RECON "03"
|
||||
|
||||
#endif /* AC_H_0013_H */
|
||||
19
app/include/ac_h_0014.h
Normal file
19
app/include/ac_h_0014.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* ac_h_0014.h - 매입 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AC_H_0014_H
|
||||
#define AC_H_0014_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} ac_h_0014_msg_t;
|
||||
|
||||
#define AC_H_0014_MSG_LEN ((int)sizeof(ac_h_0014_msg_t))
|
||||
|
||||
#endif /* AC_H_0014_H */
|
||||
22
app/include/ac_h_0015.h
Normal file
22
app/include/ac_h_0015.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* ac_h_0015.h - 매입 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AC_H_0015_H
|
||||
#define AC_H_0015_H
|
||||
|
||||
/* 매입 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} ac_h_0015_view_t;
|
||||
|
||||
#define AC_H_0015_STATUS_OPEN "O"
|
||||
#define AC_H_0015_STATUS_HOLD "H"
|
||||
#define AC_H_0015_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AC_H_0015_H */
|
||||
13
app/include/ac_h_0016.h
Normal file
13
app/include/ac_h_0016.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* ac_h_0016.h - 매입 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AC_H_0016_H
|
||||
#define AC_H_0016_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int ac_h_0016_check(const char *key, long amount);
|
||||
int ac_h_0016_apply(TXBUF *in, TXBUF *out);
|
||||
long ac_h_0016_eval(long amount, int factor);
|
||||
|
||||
#endif /* AC_H_0016_H */
|
||||
20
app/include/ac_h_0017.h
Normal file
20
app/include/ac_h_0017.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* ac_h_0017.h - 매입 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AC_H_0017_H
|
||||
#define AC_H_0017_H
|
||||
|
||||
#define AC_H_0017_RC_OK 0
|
||||
#define AC_H_0017_RC_RETRY 1
|
||||
#define AC_H_0017_RC_SKIP 2
|
||||
#define AC_H_0017_RC_ERROR 9
|
||||
|
||||
#define AC_H_0017_LIMIT_DAILY 100000000L
|
||||
#define AC_H_0017_LIMIT_SINGLE 50000000L
|
||||
#define AC_H_0017_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AC_H_0017_CHAN_ONLINE "01"
|
||||
#define AC_H_0017_CHAN_BATCH "02"
|
||||
#define AC_H_0017_CHAN_RECON "03"
|
||||
|
||||
#endif /* AC_H_0017_H */
|
||||
14
app/include/ac_io_0001.h
Normal file
14
app/include/ac_io_0001.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0001.h - 매입 보조 DBIO 선언 (ac_io_0001.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0001_H
|
||||
#define AC_IO_0001_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0001 전용 조회/갱신 (테이블 ac_io_0001_t) */
|
||||
int ac_io_0001_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0001_touch(const char *key, long amount);
|
||||
long ac_io_0001_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0001_H */
|
||||
14
app/include/ac_io_0002.h
Normal file
14
app/include/ac_io_0002.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0002.h - 매입 보조 DBIO 선언 (ac_io_0002.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0002_H
|
||||
#define AC_IO_0002_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0002 전용 조회/갱신 (테이블 ac_io_0002_t) */
|
||||
int ac_io_0002_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0002_touch(const char *key, long amount);
|
||||
long ac_io_0002_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0002_H */
|
||||
14
app/include/ac_io_0003.h
Normal file
14
app/include/ac_io_0003.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0003.h - 매입 보조 DBIO 선언 (ac_io_0003.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0003_H
|
||||
#define AC_IO_0003_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0003 전용 조회/갱신 (테이블 ac_io_0003_t) */
|
||||
int ac_io_0003_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0003_touch(const char *key, long amount);
|
||||
long ac_io_0003_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0003_H */
|
||||
14
app/include/ac_io_0004.h
Normal file
14
app/include/ac_io_0004.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0004.h - 매입 보조 DBIO 선언 (ac_io_0004.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0004_H
|
||||
#define AC_IO_0004_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0004 전용 조회/갱신 (테이블 ac_io_0004_t) */
|
||||
int ac_io_0004_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0004_touch(const char *key, long amount);
|
||||
long ac_io_0004_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0004_H */
|
||||
14
app/include/ac_io_0005.h
Normal file
14
app/include/ac_io_0005.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0005.h - 매입 보조 DBIO 선언 (ac_io_0005.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0005_H
|
||||
#define AC_IO_0005_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0005 전용 조회/갱신 (테이블 ac_io_0005_t) */
|
||||
int ac_io_0005_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0005_touch(const char *key, long amount);
|
||||
long ac_io_0005_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0005_H */
|
||||
14
app/include/ac_io_0006.h
Normal file
14
app/include/ac_io_0006.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0006.h - 매입 보조 DBIO 선언 (ac_io_0006.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0006_H
|
||||
#define AC_IO_0006_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0006 전용 조회/갱신 (테이블 ac_io_0006_t) */
|
||||
int ac_io_0006_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0006_touch(const char *key, long amount);
|
||||
long ac_io_0006_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0006_H */
|
||||
14
app/include/ac_io_0007.h
Normal file
14
app/include/ac_io_0007.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0007.h - 매입 보조 DBIO 선언 (ac_io_0007.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0007_H
|
||||
#define AC_IO_0007_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0007 전용 조회/갱신 (테이블 ac_io_0007_t) */
|
||||
int ac_io_0007_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0007_touch(const char *key, long amount);
|
||||
long ac_io_0007_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0007_H */
|
||||
14
app/include/ac_io_0008.h
Normal file
14
app/include/ac_io_0008.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0008.h - 매입 보조 DBIO 선언 (ac_io_0008.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0008_H
|
||||
#define AC_IO_0008_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0008 전용 조회/갱신 (테이블 ac_io_0008_t) */
|
||||
int ac_io_0008_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0008_touch(const char *key, long amount);
|
||||
long ac_io_0008_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0008_H */
|
||||
14
app/include/ac_io_0009.h
Normal file
14
app/include/ac_io_0009.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0009.h - 매입 보조 DBIO 선언 (ac_io_0009.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0009_H
|
||||
#define AC_IO_0009_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0009 전용 조회/갱신 (테이블 ac_io_0009_t) */
|
||||
int ac_io_0009_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0009_touch(const char *key, long amount);
|
||||
long ac_io_0009_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0009_H */
|
||||
14
app/include/ac_io_0010.h
Normal file
14
app/include/ac_io_0010.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0010.h - 매입 보조 DBIO 선언 (ac_io_0010.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0010_H
|
||||
#define AC_IO_0010_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0010 전용 조회/갱신 (테이블 ac_io_0010_t) */
|
||||
int ac_io_0010_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0010_touch(const char *key, long amount);
|
||||
long ac_io_0010_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0010_H */
|
||||
14
app/include/ac_io_0011.h
Normal file
14
app/include/ac_io_0011.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0011.h - 매입 보조 DBIO 선언 (ac_io_0011.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0011_H
|
||||
#define AC_IO_0011_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0011 전용 조회/갱신 (테이블 ac_io_0011_t) */
|
||||
int ac_io_0011_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0011_touch(const char *key, long amount);
|
||||
long ac_io_0011_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0011_H */
|
||||
14
app/include/ac_io_0012.h
Normal file
14
app/include/ac_io_0012.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0012.h - 매입 보조 DBIO 선언 (ac_io_0012.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0012_H
|
||||
#define AC_IO_0012_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0012 전용 조회/갱신 (테이블 ac_io_0012_t) */
|
||||
int ac_io_0012_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0012_touch(const char *key, long amount);
|
||||
long ac_io_0012_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0012_H */
|
||||
14
app/include/ac_io_0013.h
Normal file
14
app/include/ac_io_0013.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0013.h - 매입 보조 DBIO 선언 (ac_io_0013.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0013_H
|
||||
#define AC_IO_0013_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0013 전용 조회/갱신 (테이블 ac_io_0013_t) */
|
||||
int ac_io_0013_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0013_touch(const char *key, long amount);
|
||||
long ac_io_0013_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0013_H */
|
||||
14
app/include/ac_io_0014.h
Normal file
14
app/include/ac_io_0014.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0014.h - 매입 보조 DBIO 선언 (ac_io_0014.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0014_H
|
||||
#define AC_IO_0014_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0014 전용 조회/갱신 (테이블 ac_io_0014_t) */
|
||||
int ac_io_0014_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0014_touch(const char *key, long amount);
|
||||
long ac_io_0014_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0014_H */
|
||||
14
app/include/ac_io_0015.h
Normal file
14
app/include/ac_io_0015.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0015.h - 매입 보조 DBIO 선언 (ac_io_0015.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0015_H
|
||||
#define AC_IO_0015_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0015 전용 조회/갱신 (테이블 ac_io_0015_t) */
|
||||
int ac_io_0015_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0015_touch(const char *key, long amount);
|
||||
long ac_io_0015_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0015_H */
|
||||
14
app/include/ac_io_0016.h
Normal file
14
app/include/ac_io_0016.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0016.h - 매입 보조 DBIO 선언 (ac_io_0016.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0016_H
|
||||
#define AC_IO_0016_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0016 전용 조회/갱신 (테이블 ac_io_0016_t) */
|
||||
int ac_io_0016_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0016_touch(const char *key, long amount);
|
||||
long ac_io_0016_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0016_H */
|
||||
14
app/include/ac_io_0017.h
Normal file
14
app/include/ac_io_0017.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0017.h - 매입 보조 DBIO 선언 (ac_io_0017.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0017_H
|
||||
#define AC_IO_0017_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0017 전용 조회/갱신 (테이블 ac_io_0017_t) */
|
||||
int ac_io_0017_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0017_touch(const char *key, long amount);
|
||||
long ac_io_0017_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0017_H */
|
||||
14
app/include/ac_io_0018.h
Normal file
14
app/include/ac_io_0018.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0018.h - 매입 보조 DBIO 선언 (ac_io_0018.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0018_H
|
||||
#define AC_IO_0018_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0018 전용 조회/갱신 (테이블 ac_io_0018_t) */
|
||||
int ac_io_0018_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0018_touch(const char *key, long amount);
|
||||
long ac_io_0018_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0018_H */
|
||||
14
app/include/ac_io_0019.h
Normal file
14
app/include/ac_io_0019.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0019.h - 매입 보조 DBIO 선언 (ac_io_0019.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0019_H
|
||||
#define AC_IO_0019_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0019 전용 조회/갱신 (테이블 ac_io_0019_t) */
|
||||
int ac_io_0019_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0019_touch(const char *key, long amount);
|
||||
long ac_io_0019_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0019_H */
|
||||
14
app/include/ac_io_0020.h
Normal file
14
app/include/ac_io_0020.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0020.h - 매입 보조 DBIO 선언 (ac_io_0020.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0020_H
|
||||
#define AC_IO_0020_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0020 전용 조회/갱신 (테이블 ac_io_0020_t) */
|
||||
int ac_io_0020_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0020_touch(const char *key, long amount);
|
||||
long ac_io_0020_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0020_H */
|
||||
14
app/include/ac_io_0021.h
Normal file
14
app/include/ac_io_0021.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0021.h - 매입 보조 DBIO 선언 (ac_io_0021.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0021_H
|
||||
#define AC_IO_0021_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0021 전용 조회/갱신 (테이블 ac_io_0021_t) */
|
||||
int ac_io_0021_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0021_touch(const char *key, long amount);
|
||||
long ac_io_0021_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0021_H */
|
||||
14
app/include/ac_io_0022.h
Normal file
14
app/include/ac_io_0022.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0022.h - 매입 보조 DBIO 선언 (ac_io_0022.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0022_H
|
||||
#define AC_IO_0022_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0022 전용 조회/갱신 (테이블 ac_io_0022_t) */
|
||||
int ac_io_0022_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0022_touch(const char *key, long amount);
|
||||
long ac_io_0022_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0022_H */
|
||||
14
app/include/ac_io_0023.h
Normal file
14
app/include/ac_io_0023.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0023.h - 매입 보조 DBIO 선언 (ac_io_0023.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0023_H
|
||||
#define AC_IO_0023_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0023 전용 조회/갱신 (테이블 ac_io_0023_t) */
|
||||
int ac_io_0023_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0023_touch(const char *key, long amount);
|
||||
long ac_io_0023_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0023_H */
|
||||
14
app/include/ac_io_0024.h
Normal file
14
app/include/ac_io_0024.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0024.h - 매입 보조 DBIO 선언 (ac_io_0024.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0024_H
|
||||
#define AC_IO_0024_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0024 전용 조회/갱신 (테이블 ac_io_0024_t) */
|
||||
int ac_io_0024_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0024_touch(const char *key, long amount);
|
||||
long ac_io_0024_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0024_H */
|
||||
14
app/include/ac_io_0025.h
Normal file
14
app/include/ac_io_0025.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0025.h - 매입 보조 DBIO 선언 (ac_io_0025.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0025_H
|
||||
#define AC_IO_0025_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0025 전용 조회/갱신 (테이블 ac_io_0025_t) */
|
||||
int ac_io_0025_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0025_touch(const char *key, long amount);
|
||||
long ac_io_0025_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0025_H */
|
||||
14
app/include/ac_io_0026.h
Normal file
14
app/include/ac_io_0026.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0026.h - 매입 보조 DBIO 선언 (ac_io_0026.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0026_H
|
||||
#define AC_IO_0026_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0026 전용 조회/갱신 (테이블 ac_io_0026_t) */
|
||||
int ac_io_0026_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0026_touch(const char *key, long amount);
|
||||
long ac_io_0026_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0026_H */
|
||||
14
app/include/ac_io_0027.h
Normal file
14
app/include/ac_io_0027.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* ac_io_0027.h - 매입 보조 DBIO 선언 (ac_io_0027.pgc 구현)
|
||||
*/
|
||||
#ifndef AC_IO_0027_H
|
||||
#define AC_IO_0027_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* ac_io_0027 전용 조회/갱신 (테이블 ac_io_0027_t) */
|
||||
int ac_io_0027_fetch(const char *key, long *out_amount);
|
||||
int ac_io_0027_touch(const char *key, long amount);
|
||||
long ac_io_0027_total(const char *biz_date);
|
||||
|
||||
#endif /* AC_IO_0027_H */
|
||||
38
app/include/au_core.h
Normal file
38
app/include/au_core.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* au_core.h - 승인한도 모듈 핵심 계약 (레코드/상태/표준 DBIO API)
|
||||
*
|
||||
* 이 모듈의 온라인/배치 프로그램은 SQL 을 직접 다루지 않고 아래 표준
|
||||
* DBIO API 만 호출한다. 구현은 app/dbio/au_dbio_main.pgc (ECPG).
|
||||
*/
|
||||
#ifndef AU_CORE_H
|
||||
#define AU_CORE_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* 승인한도 처리 상태코드 */
|
||||
#define AU_ST_RECV "R" /* 접수/수신 */
|
||||
#define AU_ST_DONE "M" /* 처리완료 */
|
||||
#define AU_ST_FAIL "U" /* 불일치/실패 */
|
||||
#define AU_ST_SETTLED "S" /* 정산완료 */
|
||||
|
||||
/* 승인한도 원장 레코드 (1행) */
|
||||
typedef struct {
|
||||
char key[16]; /* 처리키(승인/거래 번호) PK */
|
||||
char merch_id[16]; /* 가맹점번호 */
|
||||
char card_no[20]; /* 카드번호(마스킹) */
|
||||
long amount; /* 거래금액(원) */
|
||||
char biz_date[9]; /* 영업일 YYYYMMDD */
|
||||
char status[2]; /* 상태코드 */
|
||||
long fee; /* 수수료(원) */
|
||||
} au_rec_t;
|
||||
|
||||
/* 표준 DBIO API (구현: au_dbio_main.pgc) */
|
||||
int au_dbio_connect(const char *target);
|
||||
int au_dbio_disconnect(void);
|
||||
int au_rec_insert(const au_rec_t *rec);
|
||||
int au_rec_select(const char *key, au_rec_t *out);
|
||||
int au_rec_update_status(const char *key, const char *status);
|
||||
long au_rec_count(const char *biz_date, const char *status);
|
||||
int au_rec_sum(const char *biz_date, long *out_sum);
|
||||
|
||||
#endif /* AU_CORE_H */
|
||||
11
app/include/au_cu_0001.h
Normal file
11
app/include/au_cu_0001.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0001.h - 승인한도 공통 유틸 선언 (au_cu_0001.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0001_H
|
||||
#define AU_CU_0001_H
|
||||
|
||||
long au_cu_0001_fee(long amount, int rate_bp);
|
||||
long au_cu_0001_round_unit(long amount, long unit);
|
||||
int au_cu_0001_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0001_H */
|
||||
11
app/include/au_cu_0002.h
Normal file
11
app/include/au_cu_0002.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0002.h - 승인한도 공통 유틸 선언 (au_cu_0002.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0002_H
|
||||
#define AU_CU_0002_H
|
||||
|
||||
long au_cu_0002_fee(long amount, int rate_bp);
|
||||
long au_cu_0002_round_unit(long amount, long unit);
|
||||
int au_cu_0002_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0002_H */
|
||||
11
app/include/au_cu_0003.h
Normal file
11
app/include/au_cu_0003.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0003.h - 승인한도 공통 유틸 선언 (au_cu_0003.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0003_H
|
||||
#define AU_CU_0003_H
|
||||
|
||||
long au_cu_0003_fee(long amount, int rate_bp);
|
||||
long au_cu_0003_round_unit(long amount, long unit);
|
||||
int au_cu_0003_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0003_H */
|
||||
11
app/include/au_cu_0004.h
Normal file
11
app/include/au_cu_0004.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0004.h - 승인한도 공통 유틸 선언 (au_cu_0004.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0004_H
|
||||
#define AU_CU_0004_H
|
||||
|
||||
long au_cu_0004_fee(long amount, int rate_bp);
|
||||
long au_cu_0004_round_unit(long amount, long unit);
|
||||
int au_cu_0004_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0004_H */
|
||||
11
app/include/au_cu_0005.h
Normal file
11
app/include/au_cu_0005.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0005.h - 승인한도 공통 유틸 선언 (au_cu_0005.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0005_H
|
||||
#define AU_CU_0005_H
|
||||
|
||||
long au_cu_0005_fee(long amount, int rate_bp);
|
||||
long au_cu_0005_round_unit(long amount, long unit);
|
||||
int au_cu_0005_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0005_H */
|
||||
11
app/include/au_cu_0006.h
Normal file
11
app/include/au_cu_0006.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0006.h - 승인한도 공통 유틸 선언 (au_cu_0006.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0006_H
|
||||
#define AU_CU_0006_H
|
||||
|
||||
long au_cu_0006_fee(long amount, int rate_bp);
|
||||
long au_cu_0006_round_unit(long amount, long unit);
|
||||
int au_cu_0006_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0006_H */
|
||||
11
app/include/au_cu_0007.h
Normal file
11
app/include/au_cu_0007.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0007.h - 승인한도 공통 유틸 선언 (au_cu_0007.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0007_H
|
||||
#define AU_CU_0007_H
|
||||
|
||||
long au_cu_0007_fee(long amount, int rate_bp);
|
||||
long au_cu_0007_round_unit(long amount, long unit);
|
||||
int au_cu_0007_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0007_H */
|
||||
11
app/include/au_cu_0008.h
Normal file
11
app/include/au_cu_0008.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0008.h - 승인한도 공통 유틸 선언 (au_cu_0008.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0008_H
|
||||
#define AU_CU_0008_H
|
||||
|
||||
long au_cu_0008_fee(long amount, int rate_bp);
|
||||
long au_cu_0008_round_unit(long amount, long unit);
|
||||
int au_cu_0008_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0008_H */
|
||||
11
app/include/au_cu_0009.h
Normal file
11
app/include/au_cu_0009.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0009.h - 승인한도 공통 유틸 선언 (au_cu_0009.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0009_H
|
||||
#define AU_CU_0009_H
|
||||
|
||||
long au_cu_0009_fee(long amount, int rate_bp);
|
||||
long au_cu_0009_round_unit(long amount, long unit);
|
||||
int au_cu_0009_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0009_H */
|
||||
11
app/include/au_cu_0010.h
Normal file
11
app/include/au_cu_0010.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0010.h - 승인한도 공통 유틸 선언 (au_cu_0010.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0010_H
|
||||
#define AU_CU_0010_H
|
||||
|
||||
long au_cu_0010_fee(long amount, int rate_bp);
|
||||
long au_cu_0010_round_unit(long amount, long unit);
|
||||
int au_cu_0010_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0010_H */
|
||||
11
app/include/au_cu_0011.h
Normal file
11
app/include/au_cu_0011.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* au_cu_0011.h - 승인한도 공통 유틸 선언 (au_cu_0011.c 구현)
|
||||
*/
|
||||
#ifndef AU_CU_0011_H
|
||||
#define AU_CU_0011_H
|
||||
|
||||
long au_cu_0011_fee(long amount, int rate_bp);
|
||||
long au_cu_0011_round_unit(long amount, long unit);
|
||||
int au_cu_0011_classify(long amount);
|
||||
|
||||
#endif /* AU_CU_0011_H */
|
||||
19
app/include/au_h_0001.h
Normal file
19
app/include/au_h_0001.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* au_h_0001.h - 승인한도 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AU_H_0001_H
|
||||
#define AU_H_0001_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} au_h_0001_msg_t;
|
||||
|
||||
#define AU_H_0001_MSG_LEN ((int)sizeof(au_h_0001_msg_t))
|
||||
|
||||
#endif /* AU_H_0001_H */
|
||||
22
app/include/au_h_0002.h
Normal file
22
app/include/au_h_0002.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* au_h_0002.h - 승인한도 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AU_H_0002_H
|
||||
#define AU_H_0002_H
|
||||
|
||||
/* 승인한도 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} au_h_0002_view_t;
|
||||
|
||||
#define AU_H_0002_STATUS_OPEN "O"
|
||||
#define AU_H_0002_STATUS_HOLD "H"
|
||||
#define AU_H_0002_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AU_H_0002_H */
|
||||
13
app/include/au_h_0003.h
Normal file
13
app/include/au_h_0003.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* au_h_0003.h - 승인한도 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AU_H_0003_H
|
||||
#define AU_H_0003_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int au_h_0003_check(const char *key, long amount);
|
||||
int au_h_0003_apply(TXBUF *in, TXBUF *out);
|
||||
long au_h_0003_eval(long amount, int factor);
|
||||
|
||||
#endif /* AU_H_0003_H */
|
||||
20
app/include/au_h_0004.h
Normal file
20
app/include/au_h_0004.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* au_h_0004.h - 승인한도 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AU_H_0004_H
|
||||
#define AU_H_0004_H
|
||||
|
||||
#define AU_H_0004_RC_OK 0
|
||||
#define AU_H_0004_RC_RETRY 1
|
||||
#define AU_H_0004_RC_SKIP 2
|
||||
#define AU_H_0004_RC_ERROR 9
|
||||
|
||||
#define AU_H_0004_LIMIT_DAILY 100000000L
|
||||
#define AU_H_0004_LIMIT_SINGLE 50000000L
|
||||
#define AU_H_0004_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AU_H_0004_CHAN_ONLINE "01"
|
||||
#define AU_H_0004_CHAN_BATCH "02"
|
||||
#define AU_H_0004_CHAN_RECON "03"
|
||||
|
||||
#endif /* AU_H_0004_H */
|
||||
19
app/include/au_h_0005.h
Normal file
19
app/include/au_h_0005.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* au_h_0005.h - 승인한도 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AU_H_0005_H
|
||||
#define AU_H_0005_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} au_h_0005_msg_t;
|
||||
|
||||
#define AU_H_0005_MSG_LEN ((int)sizeof(au_h_0005_msg_t))
|
||||
|
||||
#endif /* AU_H_0005_H */
|
||||
22
app/include/au_h_0006.h
Normal file
22
app/include/au_h_0006.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* au_h_0006.h - 승인한도 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AU_H_0006_H
|
||||
#define AU_H_0006_H
|
||||
|
||||
/* 승인한도 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} au_h_0006_view_t;
|
||||
|
||||
#define AU_H_0006_STATUS_OPEN "O"
|
||||
#define AU_H_0006_STATUS_HOLD "H"
|
||||
#define AU_H_0006_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AU_H_0006_H */
|
||||
13
app/include/au_h_0007.h
Normal file
13
app/include/au_h_0007.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* au_h_0007.h - 승인한도 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AU_H_0007_H
|
||||
#define AU_H_0007_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int au_h_0007_check(const char *key, long amount);
|
||||
int au_h_0007_apply(TXBUF *in, TXBUF *out);
|
||||
long au_h_0007_eval(long amount, int factor);
|
||||
|
||||
#endif /* AU_H_0007_H */
|
||||
20
app/include/au_h_0008.h
Normal file
20
app/include/au_h_0008.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* au_h_0008.h - 승인한도 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AU_H_0008_H
|
||||
#define AU_H_0008_H
|
||||
|
||||
#define AU_H_0008_RC_OK 0
|
||||
#define AU_H_0008_RC_RETRY 1
|
||||
#define AU_H_0008_RC_SKIP 2
|
||||
#define AU_H_0008_RC_ERROR 9
|
||||
|
||||
#define AU_H_0008_LIMIT_DAILY 100000000L
|
||||
#define AU_H_0008_LIMIT_SINGLE 50000000L
|
||||
#define AU_H_0008_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AU_H_0008_CHAN_ONLINE "01"
|
||||
#define AU_H_0008_CHAN_BATCH "02"
|
||||
#define AU_H_0008_CHAN_RECON "03"
|
||||
|
||||
#endif /* AU_H_0008_H */
|
||||
19
app/include/au_h_0009.h
Normal file
19
app/include/au_h_0009.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* au_h_0009.h - 승인한도 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AU_H_0009_H
|
||||
#define AU_H_0009_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} au_h_0009_msg_t;
|
||||
|
||||
#define AU_H_0009_MSG_LEN ((int)sizeof(au_h_0009_msg_t))
|
||||
|
||||
#endif /* AU_H_0009_H */
|
||||
22
app/include/au_h_0010.h
Normal file
22
app/include/au_h_0010.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* au_h_0010.h - 승인한도 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AU_H_0010_H
|
||||
#define AU_H_0010_H
|
||||
|
||||
/* 승인한도 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} au_h_0010_view_t;
|
||||
|
||||
#define AU_H_0010_STATUS_OPEN "O"
|
||||
#define AU_H_0010_STATUS_HOLD "H"
|
||||
#define AU_H_0010_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AU_H_0010_H */
|
||||
13
app/include/au_h_0011.h
Normal file
13
app/include/au_h_0011.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* au_h_0011.h - 승인한도 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AU_H_0011_H
|
||||
#define AU_H_0011_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int au_h_0011_check(const char *key, long amount);
|
||||
int au_h_0011_apply(TXBUF *in, TXBUF *out);
|
||||
long au_h_0011_eval(long amount, int factor);
|
||||
|
||||
#endif /* AU_H_0011_H */
|
||||
20
app/include/au_h_0012.h
Normal file
20
app/include/au_h_0012.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* au_h_0012.h - 승인한도 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AU_H_0012_H
|
||||
#define AU_H_0012_H
|
||||
|
||||
#define AU_H_0012_RC_OK 0
|
||||
#define AU_H_0012_RC_RETRY 1
|
||||
#define AU_H_0012_RC_SKIP 2
|
||||
#define AU_H_0012_RC_ERROR 9
|
||||
|
||||
#define AU_H_0012_LIMIT_DAILY 100000000L
|
||||
#define AU_H_0012_LIMIT_SINGLE 50000000L
|
||||
#define AU_H_0012_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AU_H_0012_CHAN_ONLINE "01"
|
||||
#define AU_H_0012_CHAN_BATCH "02"
|
||||
#define AU_H_0012_CHAN_RECON "03"
|
||||
|
||||
#endif /* AU_H_0012_H */
|
||||
19
app/include/au_h_0013.h
Normal file
19
app/include/au_h_0013.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* au_h_0013.h - 승인한도 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AU_H_0013_H
|
||||
#define AU_H_0013_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} au_h_0013_msg_t;
|
||||
|
||||
#define AU_H_0013_MSG_LEN ((int)sizeof(au_h_0013_msg_t))
|
||||
|
||||
#endif /* AU_H_0013_H */
|
||||
22
app/include/au_h_0014.h
Normal file
22
app/include/au_h_0014.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* au_h_0014.h - 승인한도 레코드/뷰 구조 정의
|
||||
*/
|
||||
#ifndef AU_H_0014_H
|
||||
#define AU_H_0014_H
|
||||
|
||||
/* 승인한도 처리 뷰 레코드 */
|
||||
typedef struct {
|
||||
char key[16];
|
||||
char merch_id[16];
|
||||
long amount;
|
||||
long fee;
|
||||
char biz_date[9];
|
||||
char status[2];
|
||||
char reserved[16];
|
||||
} au_h_0014_view_t;
|
||||
|
||||
#define AU_H_0014_STATUS_OPEN "O"
|
||||
#define AU_H_0014_STATUS_HOLD "H"
|
||||
#define AU_H_0014_STATUS_CLOSE "C"
|
||||
|
||||
#endif /* AU_H_0014_H */
|
||||
13
app/include/au_h_0015.h
Normal file
13
app/include/au_h_0015.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* au_h_0015.h - 승인한도 내부 헬퍼 선언
|
||||
*/
|
||||
#ifndef AU_H_0015_H
|
||||
#define AU_H_0015_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
int au_h_0015_check(const char *key, long amount);
|
||||
int au_h_0015_apply(TXBUF *in, TXBUF *out);
|
||||
long au_h_0015_eval(long amount, int factor);
|
||||
|
||||
#endif /* AU_H_0015_H */
|
||||
20
app/include/au_h_0016.h
Normal file
20
app/include/au_h_0016.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* au_h_0016.h - 승인한도 코드/상수 테이블
|
||||
*/
|
||||
#ifndef AU_H_0016_H
|
||||
#define AU_H_0016_H
|
||||
|
||||
#define AU_H_0016_RC_OK 0
|
||||
#define AU_H_0016_RC_RETRY 1
|
||||
#define AU_H_0016_RC_SKIP 2
|
||||
#define AU_H_0016_RC_ERROR 9
|
||||
|
||||
#define AU_H_0016_LIMIT_DAILY 100000000L
|
||||
#define AU_H_0016_LIMIT_SINGLE 50000000L
|
||||
#define AU_H_0016_FEE_RATE_BP 250 /* 2.50% */
|
||||
|
||||
#define AU_H_0016_CHAN_ONLINE "01"
|
||||
#define AU_H_0016_CHAN_BATCH "02"
|
||||
#define AU_H_0016_CHAN_RECON "03"
|
||||
|
||||
#endif /* AU_H_0016_H */
|
||||
19
app/include/au_h_0017.h
Normal file
19
app/include/au_h_0017.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* au_h_0017.h - 승인한도 고정길이 전문 레이아웃 (positional, 재배치 금지)
|
||||
*/
|
||||
#ifndef AU_H_0017_H
|
||||
#define AU_H_0017_H
|
||||
|
||||
typedef struct {
|
||||
char msg_type[4]; /* 전문구분 4 */
|
||||
char merch_id[15]; /* 가맹점번호 15 */
|
||||
char key[9]; /* 처리키 9 */
|
||||
char amount[12]; /* 금액 12 zero-pad */
|
||||
char biz_date[8]; /* 영업일 8 */
|
||||
char resp_code[4]; /* 응답코드 4 */
|
||||
char filler[20]; /* 예비 20 */
|
||||
} au_h_0017_msg_t;
|
||||
|
||||
#define AU_H_0017_MSG_LEN ((int)sizeof(au_h_0017_msg_t))
|
||||
|
||||
#endif /* AU_H_0017_H */
|
||||
14
app/include/au_io_0001.h
Normal file
14
app/include/au_io_0001.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0001.h - 승인한도 보조 DBIO 선언 (au_io_0001.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0001_H
|
||||
#define AU_IO_0001_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0001 전용 조회/갱신 (테이블 au_io_0001_t) */
|
||||
int au_io_0001_fetch(const char *key, long *out_amount);
|
||||
int au_io_0001_touch(const char *key, long amount);
|
||||
long au_io_0001_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0001_H */
|
||||
14
app/include/au_io_0002.h
Normal file
14
app/include/au_io_0002.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0002.h - 승인한도 보조 DBIO 선언 (au_io_0002.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0002_H
|
||||
#define AU_IO_0002_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0002 전용 조회/갱신 (테이블 au_io_0002_t) */
|
||||
int au_io_0002_fetch(const char *key, long *out_amount);
|
||||
int au_io_0002_touch(const char *key, long amount);
|
||||
long au_io_0002_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0002_H */
|
||||
14
app/include/au_io_0003.h
Normal file
14
app/include/au_io_0003.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0003.h - 승인한도 보조 DBIO 선언 (au_io_0003.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0003_H
|
||||
#define AU_IO_0003_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0003 전용 조회/갱신 (테이블 au_io_0003_t) */
|
||||
int au_io_0003_fetch(const char *key, long *out_amount);
|
||||
int au_io_0003_touch(const char *key, long amount);
|
||||
long au_io_0003_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0003_H */
|
||||
14
app/include/au_io_0004.h
Normal file
14
app/include/au_io_0004.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0004.h - 승인한도 보조 DBIO 선언 (au_io_0004.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0004_H
|
||||
#define AU_IO_0004_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0004 전용 조회/갱신 (테이블 au_io_0004_t) */
|
||||
int au_io_0004_fetch(const char *key, long *out_amount);
|
||||
int au_io_0004_touch(const char *key, long amount);
|
||||
long au_io_0004_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0004_H */
|
||||
14
app/include/au_io_0005.h
Normal file
14
app/include/au_io_0005.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0005.h - 승인한도 보조 DBIO 선언 (au_io_0005.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0005_H
|
||||
#define AU_IO_0005_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0005 전용 조회/갱신 (테이블 au_io_0005_t) */
|
||||
int au_io_0005_fetch(const char *key, long *out_amount);
|
||||
int au_io_0005_touch(const char *key, long amount);
|
||||
long au_io_0005_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0005_H */
|
||||
14
app/include/au_io_0006.h
Normal file
14
app/include/au_io_0006.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0006.h - 승인한도 보조 DBIO 선언 (au_io_0006.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0006_H
|
||||
#define AU_IO_0006_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0006 전용 조회/갱신 (테이블 au_io_0006_t) */
|
||||
int au_io_0006_fetch(const char *key, long *out_amount);
|
||||
int au_io_0006_touch(const char *key, long amount);
|
||||
long au_io_0006_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0006_H */
|
||||
14
app/include/au_io_0007.h
Normal file
14
app/include/au_io_0007.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0007.h - 승인한도 보조 DBIO 선언 (au_io_0007.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0007_H
|
||||
#define AU_IO_0007_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0007 전용 조회/갱신 (테이블 au_io_0007_t) */
|
||||
int au_io_0007_fetch(const char *key, long *out_amount);
|
||||
int au_io_0007_touch(const char *key, long amount);
|
||||
long au_io_0007_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0007_H */
|
||||
14
app/include/au_io_0008.h
Normal file
14
app/include/au_io_0008.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0008.h - 승인한도 보조 DBIO 선언 (au_io_0008.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0008_H
|
||||
#define AU_IO_0008_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0008 전용 조회/갱신 (테이블 au_io_0008_t) */
|
||||
int au_io_0008_fetch(const char *key, long *out_amount);
|
||||
int au_io_0008_touch(const char *key, long amount);
|
||||
long au_io_0008_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0008_H */
|
||||
14
app/include/au_io_0009.h
Normal file
14
app/include/au_io_0009.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0009.h - 승인한도 보조 DBIO 선언 (au_io_0009.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0009_H
|
||||
#define AU_IO_0009_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0009 전용 조회/갱신 (테이블 au_io_0009_t) */
|
||||
int au_io_0009_fetch(const char *key, long *out_amount);
|
||||
int au_io_0009_touch(const char *key, long amount);
|
||||
long au_io_0009_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0009_H */
|
||||
14
app/include/au_io_0010.h
Normal file
14
app/include/au_io_0010.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0010.h - 승인한도 보조 DBIO 선언 (au_io_0010.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0010_H
|
||||
#define AU_IO_0010_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0010 전용 조회/갱신 (테이블 au_io_0010_t) */
|
||||
int au_io_0010_fetch(const char *key, long *out_amount);
|
||||
int au_io_0010_touch(const char *key, long amount);
|
||||
long au_io_0010_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0010_H */
|
||||
14
app/include/au_io_0011.h
Normal file
14
app/include/au_io_0011.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0011.h - 승인한도 보조 DBIO 선언 (au_io_0011.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0011_H
|
||||
#define AU_IO_0011_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0011 전용 조회/갱신 (테이블 au_io_0011_t) */
|
||||
int au_io_0011_fetch(const char *key, long *out_amount);
|
||||
int au_io_0011_touch(const char *key, long amount);
|
||||
long au_io_0011_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0011_H */
|
||||
14
app/include/au_io_0012.h
Normal file
14
app/include/au_io_0012.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0012.h - 승인한도 보조 DBIO 선언 (au_io_0012.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0012_H
|
||||
#define AU_IO_0012_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0012 전용 조회/갱신 (테이블 au_io_0012_t) */
|
||||
int au_io_0012_fetch(const char *key, long *out_amount);
|
||||
int au_io_0012_touch(const char *key, long amount);
|
||||
long au_io_0012_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0012_H */
|
||||
14
app/include/au_io_0013.h
Normal file
14
app/include/au_io_0013.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0013.h - 승인한도 보조 DBIO 선언 (au_io_0013.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0013_H
|
||||
#define AU_IO_0013_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0013 전용 조회/갱신 (테이블 au_io_0013_t) */
|
||||
int au_io_0013_fetch(const char *key, long *out_amount);
|
||||
int au_io_0013_touch(const char *key, long amount);
|
||||
long au_io_0013_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0013_H */
|
||||
14
app/include/au_io_0014.h
Normal file
14
app/include/au_io_0014.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0014.h - 승인한도 보조 DBIO 선언 (au_io_0014.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0014_H
|
||||
#define AU_IO_0014_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0014 전용 조회/갱신 (테이블 au_io_0014_t) */
|
||||
int au_io_0014_fetch(const char *key, long *out_amount);
|
||||
int au_io_0014_touch(const char *key, long amount);
|
||||
long au_io_0014_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0014_H */
|
||||
14
app/include/au_io_0015.h
Normal file
14
app/include/au_io_0015.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* au_io_0015.h - 승인한도 보조 DBIO 선언 (au_io_0015.pgc 구현)
|
||||
*/
|
||||
#ifndef AU_IO_0015_H
|
||||
#define AU_IO_0015_H
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
/* au_io_0015 전용 조회/갱신 (테이블 au_io_0015_t) */
|
||||
int au_io_0015_fetch(const char *key, long *out_amount);
|
||||
int au_io_0015_touch(const char *key, long amount);
|
||||
long au_io_0015_total(const char *biz_date);
|
||||
|
||||
#endif /* AU_IO_0015_H */
|
||||
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue