/*
 * acq_common.h - leaf utility library (libacqcommon.a).
 * Pure C, no ATMI / no EXEC SQL. Linked into every module server and batch.
 */
#ifndef ACQ_COMMON_H
#define ACQ_COMMON_H

/* fee = amount * bps / 10000 (basis points). */
long acq_fee(long amount, long bps);

/* Korean VAT 10% on a supply value (부가세). */
long acq_vat(long supply);

/* withholding tax on a fee, in basis points (원천징수). */
long acq_wht_amt(long fee, long bps);

/* Luhn (mod-10) check of a numeric PAN string. 1=valid, 0=invalid. */
int acq_luhn_ok(const char *pan);

/* Next business day for "YYYY-MM-DD": +1 day, skipping Sat/Sun.
 * Writes "YYYY-MM-DD" into out (>= 11 bytes). Returns 0 ok, -1 on parse error. */
int acq_next_bizday(const char *in, char *out);

/* process-local monotonic sequence (demo of a common leaf util). */
long acq_seq_next(void);

#endif /* ACQ_COMMON_H */
