From 0d05d737f596a9dc6c8269467c70ca5329a6971b Mon Sep 17 00:00:00 2001 From: Danny Wilkins Date: Fri, 11 Oct 2019 09:28:32 +0100 Subject: [PATCH] Add feeType and paymentType constants --- lib/types/feeType.js | 13 +++++++++++++ lib/types/index.js | 6 +++++- lib/types/paymentType.js | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 lib/types/feeType.js create mode 100644 lib/types/paymentType.js diff --git a/lib/types/feeType.js b/lib/types/feeType.js new file mode 100644 index 0000000..7d1021f --- /dev/null +++ b/lib/types/feeType.js @@ -0,0 +1,13 @@ +const feeType = { + OTHER: '01', + ADMINISTRATIVE: '02', + DAMAGE: '03', + OVERDUE: '04', + PROCESSING: '05', + RENTAL: '06', + REPLACEMENT: '07', + COMPUTER_ACCSS_CHARGE: '08', + HOLD_FEE: '09', +} + +module.exports = feeType; \ No newline at end of file diff --git a/lib/types/index.js b/lib/types/index.js index 49d0cf5..a50db80 100644 --- a/lib/types/index.js +++ b/lib/types/index.js @@ -1,5 +1,9 @@ +const feeType = require('./feeType'); +const paymentType = require('./paymentType'); const summary = require('./summary'); module.exports = { - summary + feeType, + paymentType, + summary, }; \ No newline at end of file diff --git a/lib/types/paymentType.js b/lib/types/paymentType.js new file mode 100644 index 0000000..57fab3e --- /dev/null +++ b/lib/types/paymentType.js @@ -0,0 +1,7 @@ +const paymentType = { + CASH: '00', + VISA: '01', + CREDIT_CARD: '02', +} + +module.exports = paymentType; \ No newline at end of file