plac-micro-common 1.3.31 → 1.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/pdf-form/pdf-form.lib.d.ts +3 -1
- package/dist/libs/pdf-form/pdf-form.lib.js +22 -0
- package/dist/libs/pdf-form/templates/receipt.template.d.ts +1 -0
- package/dist/libs/pdf-form/templates/receipt.template.js +223 -0
- package/dist/models/application/app_document.entity.d.ts +2 -0
- package/dist/models/application/app_document.entity.js +6 -0
- package/dist/models/application/app_payment.entity.d.ts +18 -0
- package/dist/models/application/app_payment.entity.js +94 -0
- package/dist/models/application/application.entity.d.ts +4 -0
- package/dist/models/application/application.entity.js +10 -0
- package/dist/models/application/index.d.ts +3 -2
- package/dist/models/application/index.js +4 -1
- package/dist/models/core/finance/exchange_rate.entity.d.ts +1 -1
- package/dist/models/core/finance/exchange_rate.entity.js +1 -1
- package/dist/types/application.type.d.ts +12 -0
- package/dist/types/application.type.js +15 -1
- package/package.json +1 -1
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { ISIOFormData } from "../../types";
|
|
1
|
+
import { ICoverNoteFormData, IOfficialReceiptFormData, ISIOFormData } from "../../types";
|
|
2
2
|
export declare function generateFormSIO(data: ISIOFormData, lang: "en" | "kh"): Promise<string>;
|
|
3
|
+
export declare function generateCoverNote(data: ICoverNoteFormData, type: "term-life" | "endowment"): Promise<string>;
|
|
4
|
+
export declare function generateOfficialReceipt(data: IOfficialReceiptFormData): string;
|
|
@@ -34,8 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.generateFormSIO = generateFormSIO;
|
|
37
|
+
exports.generateCoverNote = generateCoverNote;
|
|
38
|
+
exports.generateOfficialReceipt = generateOfficialReceipt;
|
|
37
39
|
const khmer_os_font_1 = require("./fonts/khmer-os.font");
|
|
38
40
|
const logo_img_1 = require("./img/logo.img");
|
|
41
|
+
const cover_note_termlife_template_1 = require("./templates/cover-note-termlife.template");
|
|
42
|
+
const receipt_template_1 = require("./templates/receipt.template");
|
|
39
43
|
const sio_form_en_template_1 = require("./templates/sio-form-en.template");
|
|
40
44
|
const sio_form_kh_template_1 = require("./templates/sio-form-kh.template");
|
|
41
45
|
const ejs = __importStar(require("ejs"));
|
|
@@ -47,3 +51,21 @@ async function generateFormSIO(data, lang) {
|
|
|
47
51
|
logo_base64: logo_img_1.LOGO_BASE64,
|
|
48
52
|
});
|
|
49
53
|
}
|
|
54
|
+
async function generateCoverNote(data, type) {
|
|
55
|
+
const template = type === "term-life"
|
|
56
|
+
? cover_note_termlife_template_1.COVER_NOTE_TERMLIFE_TEMPLATE
|
|
57
|
+
: cover_note_termlife_template_1.COVER_NOTE_TERMLIFE_TEMPLATE;
|
|
58
|
+
return ejs.render(template, {
|
|
59
|
+
...data,
|
|
60
|
+
font_base64: khmer_os_font_1.KHMER_OS_FONT_BASE64,
|
|
61
|
+
logo_base64: logo_img_1.LOGO_BASE64,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function generateOfficialReceipt(data) {
|
|
65
|
+
const template = receipt_template_1.RECEIPT_TEMPLATE;
|
|
66
|
+
return ejs.render(template, {
|
|
67
|
+
...data,
|
|
68
|
+
font_base64: khmer_os_font_1.KHMER_OS_FONT_BASE64,
|
|
69
|
+
logo_base64: logo_img_1.LOGO_BASE64,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RECEIPT_TEMPLATE = "\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\"/>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n <title>\u1794\u1784\u17D2\u1780\u17B6\u1793\u17CB\u178A\u17C3\u1791\u1791\u17BD\u179B\u1794\u17D2\u179A\u17B6\u1780\u17CB - OFFICIAL RECEIPT</title>\n <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n <link href=\"https://fonts.googleapis.com/css2?family=Hanuman:wght@100..900&family=Moul&display=swap\" rel=\"stylesheet\">\n <style>\n * { \n box-sizing: border-box; \n margin: 0; padding: 0; \n }\n\n body {\n font-family: \"Hanuman\", system-ui, sans-serif;\n background: #f0f0f0;\n display: flex;\n justify-content: center;\n padding: 40px 20px;\n }\n\n .container {\n background: #fff;\n width: 210mm;\n min-height: 297mm;\n padding: 14mm 14mm 14mm 14mm;\n box-shadow: 0 4px 24px rgba(0,0,0,0.12);\n }\n\n /* \u2500\u2500 Header \u2500\u2500 */\n .header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 24px;\n padding-bottom: 20px;\n border-bottom: 1.5px solid var(--rule);\n margin-bottom: 24px;\n }\n\n .company-block { flex: 1; }\n\n .company-name-kh {\n font-family: 'Noto Serif Khmer', serif;\n font-size: 13px;\n font-weight: 700;\n color: var(--ink);\n line-height: 1.6;\n }\n\n .company-name-en {\n font-size: 15px;\n font-weight: 600;\n color: var(--ink);\n margin-top: 2px;\n }\n\n .company-address {\n font-size: 12px;\n color: var(--muted);\n line-height: 1.7;\n margin-top: 6px;\n }\n\n /* \u2500\u2500 Title \u2500\u2500 */\n .receipt-title-block {\n text-align: end;\n margin-top: 24px;\n }\n\n .receipt-title {\n font-size: 20px;\n font-weight: bold;\n letter-spacing: 0.05em;\n }\n\n .receipt-meta {\n display: flex;\n justify-content: center;\n }\n\n .receipt-meta-inner {\n display: flex;\n flex-direction: column;\n }\n\n .receipt-meta-row {\n display: flex;\n }\n\n .receipt-meta-label {\n width: 220px;\n text-align: left;\n }\n\n .receipt-meta-colon {\n width: 12px;\n text-align: center;\n }\n\n .receipt-meta-value {\n margin-left: 6px;\n }\n\n @media print {\n body { background: none; padding: 0; }\n .container { box-shadow: none; }\n }\n\n @media (max-width: 640px) {\n .container { width: 100%; padding: 24px 16px; min-height: unset; }\n }\n </style>\n</head>\n<body>\n <div class=\"container\">\n\n <!-- ===== Header ===== -->\n <div class=\"header\">\n <div class=\"company-block\">\n <div class=\"company-name-kh\">\u17A0\u17D2\u179C\u17B8\u179B\u17B8\u1796 \u17A1\u17B6\u1799\u17A0\u17D2\u179C\u17CD \u17A2\u17B6\u179F\u17BD\u179A\u17C1\u1793 (\u179A\u200B\u1781\u200B\u1798\u1794\u17BC\u178C\u17B6) \u1798.\u1780</div>\n <div class=\"company-name-en\">Phillip Life Assurance (Cambodia) PLC.</div>\n <div class=\"company-address\">\n \u17A2\u17B6\u1782\u17B6\u179A\u179B\u17C1\u1781 27AB \u1798\u17A0\u17B6\u179C\u17B7\u1790\u17B8\u1796\u17D2\u179A\u17C7\u1798\u17BB\u1793\u17B8\u179C\u1784\u17D2\u179F \u179F\u1784\u17D2\u1780\u17B6\u178F\u17CB\u179F\u17D2\u179A\u17C7\u1785\u1780 \u1781\u178E\u17D2\u178C\u178A\u17BC\u1793\u1796\u17C1\u1789 \u179A\u17B6\u1787\u1792\u17B6\u1793\u17B8\u1797\u17D2\u1793\u17C6\u1796\u17C1\u1789 \u1794\u17D2\u179A\u1791\u17C1\u179F\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6 <br>\n\n #27AB, Preah Monivong Blvd, Sangkat Srah Chork, Khan Daun Penh<br/>\n Phnom Penh, Kingdom of Cambodia<br/>\n \u1791\u17BC\u179A\u179F\u17D0\u1796\u17D2\u1791/Tel: (855) 23 426 888\n </div>\n </div>\n </div>\n\n <!-- ===== TITLE ===== -->\n <div class=\"receipt-title-block\">\n <p class=\"receipt-title\"> \u1794\u1784\u17D2\u1780\u17B6\u1793\u17CB\u178A\u17C3\u1791\u1791\u17BD\u179B\u1794\u17D2\u179A\u17B6\u1780\u17CB / Official Receipt </p>\n <div class=\"receipt-meta\" style=\"justify-content: flex-end;\">\n <div class=\"receipt-meta-inner\">\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\">\u1794\u1784\u17D2\u1780\u17B6\u1793\u17CB\u178A\u17C3\u179B\u17C1\u1781/Official Receipt</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= receipt_no %></span>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\">\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791/Date</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= receipt_date %></span>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\">\u1798\u17C9\u17C4\u1784/Time</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= receipt_time %></span>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\">\u17A2\u17D2\u1793\u1780\u1791\u1791\u17BD\u179B\u1794\u17D2\u179A\u17B6\u1780\u17CB/Receipt by</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= receipt_by %></span>\n </div>\n </div>\n </div>\n </div>\n\n <br>\n <!-- ===== Detail ===== -->\n <div class=\"receipt-meta\" style=\"justify-content: flex-start;\">\n <div class=\"receipt-meta-inner\" style=\"gap: 32px;\">\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\" style=\"width: 280px;\">\u1788\u17D2\u1798\u17C4\u17C7\u17A2\u178F\u17B7\u1790\u17B7\u1787\u1793 <br> Customer's Name</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= customer_name %></span>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\" style=\"width: 280px;\">\u1796\u17B6\u1780\u17D2\u1799\u179F\u17D2\u1793\u17BE\u179A\u179F\u17BB\u17C6\u1792\u17B6\u1793\u17B6\u179A\u17C9\u17B6\u1794\u17CB\u179A\u1784 \u17AC\u1794\u178E\u17D2\u178E\u179F\u1793\u17D2\u1799\u17B6\u179A\u17C9\u17B6\u1794\u17CB\u179A\u1784 <br> Application or Policy Number</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= application_no %></span>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\" style=\"width: 280px;\">\u1785\u17C6\u1793\u17BD\u1793\u1791\u17B9\u1780\u1794\u17D2\u179A\u17B6\u1780\u17CB (\u178A\u17BB\u179B\u17D2\u179B\u17B6\u17A2\u17B6\u1798\u17C1\u179A\u17B7\u1780) <br> Amount (USD)</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= amount %></span>\n </div>\n <div style=\"display: flex; gap: 128px;\">\n <div class=\"receipt-meta-row\" style=\"align-items: flex-start;\">\n <span class=\"receipt-meta-label\">\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E\u1794\u1784\u17CB\u1794\u17D2\u179A\u17B6\u1780\u17CB <br> Payment Currency</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= currency %></span>\n </div>\n <div class=\"receipt-meta-row\" style=\"align-items: flex-start;\">\n <span class=\"receipt-meta-label\" style=\"width: 160px;\">\u17A2\u178F\u17D2\u179A\u17B6\u1794\u17D2\u178F\u17BC\u179A\u1794\u17D2\u179A\u17B6\u1780\u17CB <br> Exchange Rate</span>\n <span class=\"receipt-meta-colon\">:</span>\n <span class=\"receipt-meta-value\"><%= exchange_rate %></span>\n </div>\n </div>\n <div class=\"receipt-meta-row\">\n <span class=\"receipt-meta-label\" style=\"width: 280px;\">\u1785\u17C6\u1793\u17BD\u1793\u1791\u17B9\u1780\u1794\u17D2\u179A\u17B6\u1780\u17CB <br> Paid Amount</span>\n <span class=\"receipt-meta-colon\">:</span>\n <div style=\"display: flex; gap: 128px;\">\n <span class=\"receipt-meta-value\">USD <%= paid_amount_in_usd %></span>\n <span class=\"receipt-meta-value\">KHR <%= paid_amount_in_khr %></span>\n </div>\n \n </div>\n </div>\n </div>\n\n\n <br>\n <!-- ===== Remark ===== -->\n <div style=\"margin-top: 4px;\">\n <span style=\"text-decoration: underline;\">\u179F\u1798\u17D2\u1782\u17B6\u179B\u17CB / Remark</span><br>\n <span>\u1794\u1784\u17D2\u1782\u17B6\u1793\u17CB\u178A\u17C3\u1791\u1791\u17BD\u179B\u1794\u17D2\u179A\u17B6\u1780\u17CB\u1793\u17C1\u17C7\u178F\u17D2\u179A\u17BC\u179C\u1794\u17B6\u1793\u1794\u1784\u17D2\u1780\u17BE\u178F\u17A1\u17BE\u1784\u178A\u17C4\u1799\u1794\u17D2\u179A\u1796\u17D0\u1793\u17D2\u1792\u179F\u17D2\u179C\u17B7\u1799\u1794\u17D2\u179A\u179C\u178F\u17D2\u178A\u17B7 \u1793\u17B7\u1784\u1798\u17B7\u1793\u178F\u1798\u17D2\u179A\u17BC\u179C\u17A2\u17C4\u1799\u1798\u17B6\u1793\u1780\u17B6\u179A\u1785\u17BB\u17C7\u17A0\u178F\u17D2\u1790\u179B\u17C1\u1781\u17B6 \u17AC \u178F\u17D2\u179A\u17B6\u1791\u17C1\u17D4</span><br>\n <span>This official Receipt is auto-generated by the system, no signature or stamp is required.</span>\n </div>\n\n </div>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RECEIPT_TEMPLATE = void 0;
|
|
4
|
+
exports.RECEIPT_TEMPLATE = `
|
|
5
|
+
<!DOCTYPE html>
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="UTF-8"/>
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
10
|
+
<title>បង្កាន់ដៃទទួលប្រាក់ - OFFICIAL RECEIPT</title>
|
|
11
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
12
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
13
|
+
<link href="https://fonts.googleapis.com/css2?family=Hanuman:wght@100..900&family=Moul&display=swap" rel="stylesheet">
|
|
14
|
+
<style>
|
|
15
|
+
* {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
margin: 0; padding: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: "Hanuman", system-ui, sans-serif;
|
|
22
|
+
background: #f0f0f0;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding: 40px 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container {
|
|
29
|
+
background: #fff;
|
|
30
|
+
width: 210mm;
|
|
31
|
+
min-height: 297mm;
|
|
32
|
+
padding: 14mm 14mm 14mm 14mm;
|
|
33
|
+
box-shadow: 0 4px 24px rgba(0,0,0,0.12);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ── Header ── */
|
|
37
|
+
.header {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: 24px;
|
|
42
|
+
padding-bottom: 20px;
|
|
43
|
+
border-bottom: 1.5px solid var(--rule);
|
|
44
|
+
margin-bottom: 24px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.company-block { flex: 1; }
|
|
48
|
+
|
|
49
|
+
.company-name-kh {
|
|
50
|
+
font-family: 'Noto Serif Khmer', serif;
|
|
51
|
+
font-size: 13px;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
color: var(--ink);
|
|
54
|
+
line-height: 1.6;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.company-name-en {
|
|
58
|
+
font-size: 15px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: var(--ink);
|
|
61
|
+
margin-top: 2px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.company-address {
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
color: var(--muted);
|
|
67
|
+
line-height: 1.7;
|
|
68
|
+
margin-top: 6px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ── Title ── */
|
|
72
|
+
.receipt-title-block {
|
|
73
|
+
text-align: end;
|
|
74
|
+
margin-top: 24px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.receipt-title {
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
letter-spacing: 0.05em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.receipt-meta {
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.receipt-meta-inner {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.receipt-meta-row {
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.receipt-meta-label {
|
|
98
|
+
width: 220px;
|
|
99
|
+
text-align: left;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.receipt-meta-colon {
|
|
103
|
+
width: 12px;
|
|
104
|
+
text-align: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.receipt-meta-value {
|
|
108
|
+
margin-left: 6px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media print {
|
|
112
|
+
body { background: none; padding: 0; }
|
|
113
|
+
.container { box-shadow: none; }
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@media (max-width: 640px) {
|
|
117
|
+
.container { width: 100%; padding: 24px 16px; min-height: unset; }
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
120
|
+
</head>
|
|
121
|
+
<body>
|
|
122
|
+
<div class="container">
|
|
123
|
+
|
|
124
|
+
<!-- ===== Header ===== -->
|
|
125
|
+
<div class="header">
|
|
126
|
+
<div class="company-block">
|
|
127
|
+
<div class="company-name-kh">ហ្វីលីព ឡាយហ្វ៍ អាសួរេន (រខមបូឌា) ម.ក</div>
|
|
128
|
+
<div class="company-name-en">Phillip Life Assurance (Cambodia) PLC.</div>
|
|
129
|
+
<div class="company-address">
|
|
130
|
+
អាគារលេខ 27AB មហាវិថីព្រះមុនីវង្ស សង្កាត់ស្រះចក ខណ្ឌដូនពេញ រាជធានីភ្នំពេញ ប្រទេសកម្ពុជា <br>
|
|
131
|
+
|
|
132
|
+
#27AB, Preah Monivong Blvd, Sangkat Srah Chork, Khan Daun Penh<br/>
|
|
133
|
+
Phnom Penh, Kingdom of Cambodia<br/>
|
|
134
|
+
ទូរស័ព្ទ/Tel: (855) 23 426 888
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<!-- ===== TITLE ===== -->
|
|
140
|
+
<div class="receipt-title-block">
|
|
141
|
+
<p class="receipt-title"> បង្កាន់ដៃទទួលប្រាក់ / Official Receipt </p>
|
|
142
|
+
<div class="receipt-meta" style="justify-content: flex-end;">
|
|
143
|
+
<div class="receipt-meta-inner">
|
|
144
|
+
<div class="receipt-meta-row">
|
|
145
|
+
<span class="receipt-meta-label">បង្កាន់ដៃលេខ/Official Receipt</span>
|
|
146
|
+
<span class="receipt-meta-colon">:</span>
|
|
147
|
+
<span class="receipt-meta-value"><%= receipt_no %></span>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="receipt-meta-row">
|
|
150
|
+
<span class="receipt-meta-label">កាលបរិច្ឆេទ/Date</span>
|
|
151
|
+
<span class="receipt-meta-colon">:</span>
|
|
152
|
+
<span class="receipt-meta-value"><%= receipt_date %></span>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="receipt-meta-row">
|
|
155
|
+
<span class="receipt-meta-label">ម៉ោង/Time</span>
|
|
156
|
+
<span class="receipt-meta-colon">:</span>
|
|
157
|
+
<span class="receipt-meta-value"><%= receipt_time %></span>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="receipt-meta-row">
|
|
160
|
+
<span class="receipt-meta-label">អ្នកទទួលប្រាក់/Receipt by</span>
|
|
161
|
+
<span class="receipt-meta-colon">:</span>
|
|
162
|
+
<span class="receipt-meta-value"><%= receipt_by %></span>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<br>
|
|
169
|
+
<!-- ===== Detail ===== -->
|
|
170
|
+
<div class="receipt-meta" style="justify-content: flex-start;">
|
|
171
|
+
<div class="receipt-meta-inner" style="gap: 32px;">
|
|
172
|
+
<div class="receipt-meta-row">
|
|
173
|
+
<span class="receipt-meta-label" style="width: 280px;">ឈ្មោះអតិថិជន <br> Customer's Name</span>
|
|
174
|
+
<span class="receipt-meta-colon">:</span>
|
|
175
|
+
<span class="receipt-meta-value"><%= customer_name %></span>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="receipt-meta-row">
|
|
178
|
+
<span class="receipt-meta-label" style="width: 280px;">ពាក្យស្នើរសុំធានារ៉ាប់រង ឬបណ្ណសន្យារ៉ាប់រង <br> Application or Policy Number</span>
|
|
179
|
+
<span class="receipt-meta-colon">:</span>
|
|
180
|
+
<span class="receipt-meta-value"><%= application_no %></span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="receipt-meta-row">
|
|
183
|
+
<span class="receipt-meta-label" style="width: 280px;">ចំនួនទឹកប្រាក់ (ដុល្លាអាមេរិក) <br> Amount (USD)</span>
|
|
184
|
+
<span class="receipt-meta-colon">:</span>
|
|
185
|
+
<span class="receipt-meta-value"><%= amount %></span>
|
|
186
|
+
</div>
|
|
187
|
+
<div style="display: flex; gap: 128px;">
|
|
188
|
+
<div class="receipt-meta-row" style="align-items: flex-start;">
|
|
189
|
+
<span class="receipt-meta-label">រូបិយប័ណ្ណបង់ប្រាក់ <br> Payment Currency</span>
|
|
190
|
+
<span class="receipt-meta-colon">:</span>
|
|
191
|
+
<span class="receipt-meta-value"><%= currency %></span>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="receipt-meta-row" style="align-items: flex-start;">
|
|
194
|
+
<span class="receipt-meta-label" style="width: 160px;">អត្រាប្តូរប្រាក់ <br> Exchange Rate</span>
|
|
195
|
+
<span class="receipt-meta-colon">:</span>
|
|
196
|
+
<span class="receipt-meta-value"><%= exchange_rate %></span>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="receipt-meta-row">
|
|
200
|
+
<span class="receipt-meta-label" style="width: 280px;">ចំនួនទឹកប្រាក់ <br> Paid Amount</span>
|
|
201
|
+
<span class="receipt-meta-colon">:</span>
|
|
202
|
+
<div style="display: flex; gap: 128px;">
|
|
203
|
+
<span class="receipt-meta-value">USD <%= paid_amount_in_usd %></span>
|
|
204
|
+
<span class="receipt-meta-value">KHR <%= paid_amount_in_khr %></span>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
<br>
|
|
213
|
+
<!-- ===== Remark ===== -->
|
|
214
|
+
<div style="margin-top: 4px;">
|
|
215
|
+
<span style="text-decoration: underline;">សម្គាល់ / Remark</span><br>
|
|
216
|
+
<span>បង្គាន់ដៃទទួលប្រាក់នេះត្រូវបានបង្កើតឡើងដោយប្រព័ន្ធស្វិយប្រវត្ដិ និងមិនតម្រូវអោយមានការចុះហត្ថលេខា ឬ ត្រាទេ។</span><br>
|
|
217
|
+
<span>This official Receipt is auto-generated by the system, no signature or stamp is required.</span>
|
|
218
|
+
</div>
|
|
219
|
+
|
|
220
|
+
</div>
|
|
221
|
+
</body>
|
|
222
|
+
</html>
|
|
223
|
+
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
2
|
import { AppDocumentType, DocumentStorageProvider } from "../../types";
|
|
3
|
+
import { ApplicationEntity } from "./application.entity";
|
|
3
4
|
export declare class AppDocumentEntity extends _BaseEntity {
|
|
4
5
|
id: string;
|
|
5
6
|
application_id: string;
|
|
@@ -17,4 +18,5 @@ export declare class AppDocumentEntity extends _BaseEntity {
|
|
|
17
18
|
public_url?: string | null;
|
|
18
19
|
uploaded_at: Date;
|
|
19
20
|
uploaded_by_user_id?: string | null;
|
|
21
|
+
application?: ApplicationEntity;
|
|
20
22
|
}
|
|
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const utils_1 = require("../../utils");
|
|
16
16
|
const types_1 = require("../../types");
|
|
17
|
+
const application_entity_1 = require("./application.entity");
|
|
17
18
|
let AppDocumentEntity = class AppDocumentEntity extends _base_entity_1._BaseEntity {
|
|
18
19
|
};
|
|
19
20
|
exports.AppDocumentEntity = AppDocumentEntity;
|
|
@@ -89,6 +90,11 @@ __decorate([
|
|
|
89
90
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
90
91
|
__metadata("design:type", Object)
|
|
91
92
|
], AppDocumentEntity.prototype, "uploaded_by_user_id", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: "CASCADE" }),
|
|
95
|
+
(0, typeorm_1.JoinColumn)({ name: "application_id" }),
|
|
96
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
97
|
+
], AppDocumentEntity.prototype, "application", void 0);
|
|
92
98
|
exports.AppDocumentEntity = AppDocumentEntity = __decorate([
|
|
93
99
|
(0, typeorm_1.Entity)({ schema: "application", name: "app_documents" }),
|
|
94
100
|
(0, typeorm_1.Index)("idx_app_documents_application_id", ["application_id"]),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { ApplicationEntity } from "./application.entity";
|
|
3
|
+
import { AppPaymentStatus, AppPaymentType } from "../../types";
|
|
4
|
+
export declare class AppPaymentEntity extends _BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
application_id: string;
|
|
7
|
+
payment_no?: string | null;
|
|
8
|
+
payment_datetime: Date;
|
|
9
|
+
payment_type: AppPaymentType;
|
|
10
|
+
payment_status: AppPaymentStatus;
|
|
11
|
+
exchange_rate_value: string;
|
|
12
|
+
amount_paid_usd: number;
|
|
13
|
+
amount_paid_khr: number;
|
|
14
|
+
total_paid_amount: number;
|
|
15
|
+
reference_no?: string | null;
|
|
16
|
+
remark?: string | null;
|
|
17
|
+
application?: ApplicationEntity;
|
|
18
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppPaymentEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
const application_entity_1 = require("./application.entity");
|
|
17
|
+
const types_1 = require("../../types");
|
|
18
|
+
let AppPaymentEntity = class AppPaymentEntity extends _base_entity_1._BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.AppPaymentEntity = AppPaymentEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AppPaymentEntity.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AppPaymentEntity.prototype, "application_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], AppPaymentEntity.prototype, "payment_no", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "timestamptz" }),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], AppPaymentEntity.prototype, "payment_datetime", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 20,
|
|
41
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppPaymentType),
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AppPaymentEntity.prototype, "payment_type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({
|
|
47
|
+
type: "varchar",
|
|
48
|
+
length: 20,
|
|
49
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppPaymentStatus),
|
|
50
|
+
default: types_1.AppPaymentStatus.Success,
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AppPaymentEntity.prototype, "payment_status", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 6 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AppPaymentEntity.prototype, "exchange_rate_value", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2, default: 0 }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], AppPaymentEntity.prototype, "amount_paid_usd", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: "numeric",
|
|
65
|
+
precision: 18,
|
|
66
|
+
scale: 2,
|
|
67
|
+
default: 0,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], AppPaymentEntity.prototype, "amount_paid_khr", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 2 }),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], AppPaymentEntity.prototype, "total_paid_amount", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], AppPaymentEntity.prototype, "reference_no", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], AppPaymentEntity.prototype, "remark", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: "CASCADE" }),
|
|
85
|
+
(0, typeorm_1.JoinColumn)({ name: "application_id" }),
|
|
86
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
87
|
+
], AppPaymentEntity.prototype, "application", void 0);
|
|
88
|
+
exports.AppPaymentEntity = AppPaymentEntity = __decorate([
|
|
89
|
+
(0, typeorm_1.Entity)({ schema: "application", name: "app_payments" }),
|
|
90
|
+
(0, typeorm_1.Index)("ux_app_payments_payment_no", ["payment_no"], { unique: true }),
|
|
91
|
+
(0, typeorm_1.Index)("ix_app_payments_application_id", ["application_id"]),
|
|
92
|
+
(0, typeorm_1.Index)("ix_app_payments_payment_datetime", ["payment_datetime"]),
|
|
93
|
+
(0, typeorm_1.Index)("ix_app_payments_payment_status", ["payment_status"])
|
|
94
|
+
], AppPaymentEntity);
|
|
@@ -6,6 +6,8 @@ import { AppPersonEntity } from "./app_person.entity";
|
|
|
6
6
|
import { AppBeneficiaryEntity } from "./app_beneficiary.entity";
|
|
7
7
|
import { AppUnderwritingInfoEntity } from "./app_underwriting_info.entity";
|
|
8
8
|
import { AppUnderwritingAnswerEntity } from "./app_underwriting_answer.entity";
|
|
9
|
+
import { AppDocumentEntity } from "./app_document.entity";
|
|
10
|
+
import { AppPaymentEntity } from "./app_payment.entity";
|
|
9
11
|
export declare class ApplicationEntity extends _BaseEntity {
|
|
10
12
|
id: string;
|
|
11
13
|
application_no: string;
|
|
@@ -52,4 +54,6 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
52
54
|
app_beneficiaries?: AppBeneficiaryEntity[];
|
|
53
55
|
app_uw_infos?: AppUnderwritingInfoEntity[];
|
|
54
56
|
app_uw_answers?: AppUnderwritingAnswerEntity[];
|
|
57
|
+
app_documents?: AppDocumentEntity[];
|
|
58
|
+
app_payments?: AppPaymentEntity[];
|
|
55
59
|
}
|
|
@@ -20,6 +20,8 @@ const app_person_entity_1 = require("./app_person.entity");
|
|
|
20
20
|
const app_beneficiary_entity_1 = require("./app_beneficiary.entity");
|
|
21
21
|
const app_underwriting_info_entity_1 = require("./app_underwriting_info.entity");
|
|
22
22
|
const app_underwriting_answer_entity_1 = require("./app_underwriting_answer.entity");
|
|
23
|
+
const app_document_entity_1 = require("./app_document.entity");
|
|
24
|
+
const app_payment_entity_1 = require("./app_payment.entity");
|
|
23
25
|
let ApplicationEntity = class ApplicationEntity extends _base_entity_1._BaseEntity {
|
|
24
26
|
};
|
|
25
27
|
exports.ApplicationEntity = ApplicationEntity;
|
|
@@ -250,6 +252,14 @@ __decorate([
|
|
|
250
252
|
}),
|
|
251
253
|
__metadata("design:type", Array)
|
|
252
254
|
], ApplicationEntity.prototype, "app_uw_answers", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
(0, typeorm_1.OneToMany)(() => app_document_entity_1.AppDocumentEntity, (d) => d.application, { nullable: true }),
|
|
257
|
+
__metadata("design:type", Array)
|
|
258
|
+
], ApplicationEntity.prototype, "app_documents", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, typeorm_1.OneToMany)(() => app_payment_entity_1.AppPaymentEntity, (d) => d.application, { nullable: true }),
|
|
261
|
+
__metadata("design:type", Array)
|
|
262
|
+
], ApplicationEntity.prototype, "app_payments", void 0);
|
|
253
263
|
exports.ApplicationEntity = ApplicationEntity = __decorate([
|
|
254
264
|
(0, typeorm_1.Entity)({ schema: "application", name: "applications" })
|
|
255
265
|
], ApplicationEntity);
|
|
@@ -7,5 +7,6 @@ import { AppUnderwritingInfoEntity } from "./app_underwriting_info.entity";
|
|
|
7
7
|
import { AppActivityLogEntity } from "./app_activity_log.entity";
|
|
8
8
|
import { UnderwritingQuestionEntity } from "./underwriting_question.entity";
|
|
9
9
|
import { AppDocumentEntity } from "./app_document.entity";
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
import { AppPaymentEntity } from "./app_payment.entity";
|
|
11
|
+
export declare const APPLICATION_ENTITIES: readonly [typeof ApplicationEntity, typeof AppBeneficiaryEntity, typeof AppCoverageEntity, typeof AppPersonEntity, typeof AppUnderwritingAnswerEntity, typeof AppUnderwritingInfoEntity, typeof AppDocumentEntity, typeof AppPaymentEntity, typeof AppActivityLogEntity, typeof UnderwritingQuestionEntity];
|
|
12
|
+
export { ApplicationEntity, AppBeneficiaryEntity, AppCoverageEntity, AppPersonEntity, AppUnderwritingAnswerEntity, AppUnderwritingInfoEntity, AppDocumentEntity, AppPaymentEntity, AppActivityLogEntity, UnderwritingQuestionEntity, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnderwritingQuestionEntity = exports.AppActivityLogEntity = exports.AppDocumentEntity = exports.AppUnderwritingInfoEntity = exports.AppUnderwritingAnswerEntity = exports.AppPersonEntity = exports.AppCoverageEntity = exports.AppBeneficiaryEntity = exports.ApplicationEntity = exports.APPLICATION_ENTITIES = void 0;
|
|
3
|
+
exports.UnderwritingQuestionEntity = exports.AppActivityLogEntity = exports.AppPaymentEntity = exports.AppDocumentEntity = exports.AppUnderwritingInfoEntity = exports.AppUnderwritingAnswerEntity = exports.AppPersonEntity = exports.AppCoverageEntity = exports.AppBeneficiaryEntity = exports.ApplicationEntity = exports.APPLICATION_ENTITIES = void 0;
|
|
4
4
|
const application_entity_1 = require("./application.entity");
|
|
5
5
|
Object.defineProperty(exports, "ApplicationEntity", { enumerable: true, get: function () { return application_entity_1.ApplicationEntity; } });
|
|
6
6
|
const app_beneficiary_entity_1 = require("./app_beneficiary.entity");
|
|
@@ -19,6 +19,8 @@ const underwriting_question_entity_1 = require("./underwriting_question.entity")
|
|
|
19
19
|
Object.defineProperty(exports, "UnderwritingQuestionEntity", { enumerable: true, get: function () { return underwriting_question_entity_1.UnderwritingQuestionEntity; } });
|
|
20
20
|
const app_document_entity_1 = require("./app_document.entity");
|
|
21
21
|
Object.defineProperty(exports, "AppDocumentEntity", { enumerable: true, get: function () { return app_document_entity_1.AppDocumentEntity; } });
|
|
22
|
+
const app_payment_entity_1 = require("./app_payment.entity");
|
|
23
|
+
Object.defineProperty(exports, "AppPaymentEntity", { enumerable: true, get: function () { return app_payment_entity_1.AppPaymentEntity; } });
|
|
22
24
|
exports.APPLICATION_ENTITIES = [
|
|
23
25
|
application_entity_1.ApplicationEntity,
|
|
24
26
|
app_beneficiary_entity_1.AppBeneficiaryEntity,
|
|
@@ -27,6 +29,7 @@ exports.APPLICATION_ENTITIES = [
|
|
|
27
29
|
app_underwriting_answer_entity_1.AppUnderwritingAnswerEntity,
|
|
28
30
|
app_underwriting_info_entity_1.AppUnderwritingInfoEntity,
|
|
29
31
|
app_document_entity_1.AppDocumentEntity,
|
|
32
|
+
app_payment_entity_1.AppPaymentEntity,
|
|
30
33
|
app_activity_log_entity_1.AppActivityLogEntity,
|
|
31
34
|
underwriting_question_entity_1.UnderwritingQuestionEntity,
|
|
32
35
|
];
|
|
@@ -6,7 +6,7 @@ export declare class ExchangeRateEntity extends _BaseEntity {
|
|
|
6
6
|
base_currency_code: string;
|
|
7
7
|
quote_currency_code: string;
|
|
8
8
|
rate_date: string;
|
|
9
|
-
exchange_rate:
|
|
9
|
+
exchange_rate: number;
|
|
10
10
|
source_type: ExchangeRateSourceType;
|
|
11
11
|
remarks?: string | null;
|
|
12
12
|
is_active: boolean;
|
|
@@ -36,7 +36,7 @@ __decorate([
|
|
|
36
36
|
], ExchangeRateEntity.prototype, "rate_date", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, typeorm_1.Column)({ type: "numeric", precision: 18, scale: 6 }),
|
|
39
|
-
__metadata("design:type",
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
40
|
], ExchangeRateEntity.prototype, "exchange_rate", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, typeorm_1.Column)({
|
|
@@ -58,3 +58,15 @@ export declare enum AppDocumentType {
|
|
|
58
58
|
ClaimForm = "claim_form",
|
|
59
59
|
Other = "other"
|
|
60
60
|
}
|
|
61
|
+
export declare enum AppPaymentType {
|
|
62
|
+
Premium = "premium",
|
|
63
|
+
Deposit = "deposit",
|
|
64
|
+
Refund = "refund"
|
|
65
|
+
}
|
|
66
|
+
export declare enum AppPaymentStatus {
|
|
67
|
+
Success = "success",
|
|
68
|
+
Failed = "failed",
|
|
69
|
+
Pending = "pending",
|
|
70
|
+
Cancelled = "cancelled",
|
|
71
|
+
Voided = "voided"
|
|
72
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = void 0;
|
|
3
|
+
exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = void 0;
|
|
4
4
|
var ApplicationStatus;
|
|
5
5
|
(function (ApplicationStatus) {
|
|
6
6
|
ApplicationStatus["New"] = "new";
|
|
@@ -78,3 +78,17 @@ var AppDocumentType;
|
|
|
78
78
|
// ClaimForm = 'claim_form',
|
|
79
79
|
AppDocumentType["Other"] = "other";
|
|
80
80
|
})(AppDocumentType || (exports.AppDocumentType = AppDocumentType = {}));
|
|
81
|
+
var AppPaymentType;
|
|
82
|
+
(function (AppPaymentType) {
|
|
83
|
+
AppPaymentType["Premium"] = "premium";
|
|
84
|
+
AppPaymentType["Deposit"] = "deposit";
|
|
85
|
+
AppPaymentType["Refund"] = "refund";
|
|
86
|
+
})(AppPaymentType || (exports.AppPaymentType = AppPaymentType = {}));
|
|
87
|
+
var AppPaymentStatus;
|
|
88
|
+
(function (AppPaymentStatus) {
|
|
89
|
+
AppPaymentStatus["Success"] = "success";
|
|
90
|
+
AppPaymentStatus["Failed"] = "failed";
|
|
91
|
+
AppPaymentStatus["Pending"] = "pending";
|
|
92
|
+
AppPaymentStatus["Cancelled"] = "cancelled";
|
|
93
|
+
AppPaymentStatus["Voided"] = "voided";
|
|
94
|
+
})(AppPaymentStatus || (exports.AppPaymentStatus = AppPaymentStatus = {}));
|