tango-app-api-payment-subscription 3.0.14-dev → 3.0.14
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/index.js +2 -1
- package/package.json +8 -3
- package/src/controllers/paymentSubscription.controllers.js +1616 -123
- package/src/docs/payment.docs.js +673 -0
- package/src/dtos/validation.dtos.js +197 -100
- package/src/hbs/invoicePdf.hbs +1577 -0
- package/src/hbs/invoicePdfold.hbs +198 -0
- package/src/hbs/invoiceRaised.hbs +654 -0
- package/src/hbs/revisedPriceEmail.hbs +290 -0
- package/src/hbs/trialCreditNoteEmail.hbs +603 -0
- package/src/hbs/trialExpiredEmail.hbs +309 -0
- package/src/hbs/trialExtentionEmail.hbs +194 -0
- package/src/hbs/trialInitiateEmail.hbs +10 -10
- package/src/hbs/trialReminderEmail.hbs +315 -0
- package/src/hbs/trialSubscriptionEmail.hbs +197 -0
- package/src/hbs/trialUnsubscribeEmail.hbs +188 -0
- package/src/routes/paymentSubscription.routes.js +151 -48
- package/src/services/basePrice.service.js +4 -0
- package/src/services/clientRequest.service.js +8 -0
- package/src/services/dailyPrice.service.js +22 -0
- package/src/services/invoice.service.js +12 -1
- package/src/services/user.service.js +8 -0
- package/src/utils/validations/client.validation.js +1 -2
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
|
|
6
|
+
<meta charset="utf-8">
|
|
7
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
8
|
+
<title>Trial Intiate Email</title>
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
@media screen {
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'Inter';
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
src: local("Inter"), local("Inter-Regular"), url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZJhiI2B.woff2) format('woff2');
|
|
18
|
+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
font-family: "Inter", sans-serif !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body,
|
|
27
|
+
table,
|
|
28
|
+
td,
|
|
29
|
+
a {
|
|
30
|
+
-ms-text-size-adjust: 100%;
|
|
31
|
+
-webkit-text-size-adjust: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
table,
|
|
35
|
+
td {
|
|
36
|
+
mso-table-rspace: 0pt;
|
|
37
|
+
mso-table-lspace: 0pt;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
img {
|
|
41
|
+
-ms-interpolation-mode: bicubic;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a[x-apple-data-detectors] {
|
|
45
|
+
font-family: "inherit" !important;
|
|
46
|
+
font-size: inherit !important;
|
|
47
|
+
font-weight: inherit !important;
|
|
48
|
+
line-height: inherit !important;
|
|
49
|
+
color: inherit !important;
|
|
50
|
+
text-decoration: none !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
div[style*="margin: 16px 0;"
|
|
55
|
+
|
|
56
|
+
] {
|
|
57
|
+
margin: 0 !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
body {
|
|
61
|
+
width: 100% !important;
|
|
62
|
+
height: 100% !important;
|
|
63
|
+
padding: 0 !important;
|
|
64
|
+
margin: 0 !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
table {
|
|
69
|
+
border-collapse: collapse !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
a {
|
|
73
|
+
color: #1a82e2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
img {
|
|
77
|
+
height: auto;
|
|
78
|
+
line-height: 100%;
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
border: 0;
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.invoicedescription {
|
|
85
|
+
/* width:300px;
|
|
86
|
+
padding-left:30px; */
|
|
87
|
+
color: #667085 !important
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.productstext {
|
|
91
|
+
font-size: 16px !important;
|
|
92
|
+
font-weight: 500 !important;
|
|
93
|
+
text-align: left;
|
|
94
|
+
color: #475467 !important;
|
|
95
|
+
/* border-bottom:1px solid #f0ecea !important; */
|
|
96
|
+
line-height: 24px !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.invoicesub {
|
|
100
|
+
/* font-family: 'Inter'; */
|
|
101
|
+
color: #667085 !important;
|
|
102
|
+
font-size: 16px;
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
line-height: 24px;
|
|
105
|
+
text-align: left;
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
</style>
|
|
109
|
+
|
|
110
|
+
</head>
|
|
111
|
+
|
|
112
|
+
<body style="background-color: #dbe5ea;">
|
|
113
|
+
|
|
114
|
+
<div class="preheader"
|
|
115
|
+
style="display: none; max-width: 0; max-height: 0; overflow: hidden; font-size: 1px; line-height: 1px; color: #fff; opacity: 0;">
|
|
116
|
+
Email Summary (Hidden)
|
|
117
|
+
</div>
|
|
118
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-left:10px;padding-right:10px">
|
|
119
|
+
<tr>
|
|
120
|
+
<td bgcolor="#dbe5ea" style="padding:32px 10px 0 10px">
|
|
121
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;" align="center">
|
|
122
|
+
<tr>
|
|
123
|
+
<td class="o_bg-white o_px-md o_py-md o_sans o_text"
|
|
124
|
+
style="margin-top: 0px;margin-bottom: 0px;font-size: 16px;line-height: 24px;background-color: #ffffff;padding-left: 18px;padding-right: 24px;padding-top: 24px;padding-bottom: 24px;">
|
|
125
|
+
<p style="margin-top: 0px;margin-bottom: 0px;"><a class="o_text-white"
|
|
126
|
+
href="https://tangoeye.ai/"
|
|
127
|
+
style="text-decoration: none;outline: none;color: #ffffff;"><img
|
|
128
|
+
src="https://devtangoretail-api.tangoeye.ai/logo.png" width="200" height="100"
|
|
129
|
+
alt="SimpleApp"
|
|
130
|
+
style="-ms-interpolation-mode: bicubic;vertical-align: middle;border: 0;line-height: 100%;height: auto;outline: none;text-decoration: none;"></a>
|
|
131
|
+
</p>
|
|
132
|
+
</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td align="left" bgcolor="#ffffff"
|
|
136
|
+
style="padding-left: 30px;padding-right: 24px; font-size: 14px; line-height: 24px;">
|
|
137
|
+
<p class="o_heading o_mb-xxs"
|
|
138
|
+
style="width: 624px;height: 0px;border: 1px solid #CBD5E1;flex: none;order: 1;flex-grow: 0;">
|
|
139
|
+
</p>
|
|
140
|
+
</td>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<td class="o_bg-white o_px-md o_py-xl o_xs-py-md"
|
|
144
|
+
style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom: 10px;">
|
|
145
|
+
<div class="o_col-6s o_sans o_text-md o_text-light o_center"
|
|
146
|
+
style="margin-top: 0px;margin-bottom: 0px;font-size: 24px;line-height: 28px;color: #82899a;">
|
|
147
|
+
<span class="o_heading o_text-dark o_mb-xxs"
|
|
148
|
+
style="font-weight: 700;margin-top: 0px;margin-bottom: 4px;color: #121A26;line-height: 140%;">
|
|
149
|
+
Revision in Subscription price </span>
|
|
150
|
+
</div>
|
|
151
|
+
</td>
|
|
152
|
+
</tr>
|
|
153
|
+
</table>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
<tr>
|
|
157
|
+
<td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
|
|
158
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
|
|
159
|
+
<tr>
|
|
160
|
+
<td align="left" bgcolor="#ffffff"
|
|
161
|
+
style="padding-left: 30px;padding-right: 24px;padding-top:10px; font-size: 16px; line-height: 24px;font-weight:400;color:#384860; padding-bottom: 20px;">
|
|
162
|
+
<p style="margin: 0;">"Notice:Subscription price revised.Please review updated pricing
|
|
163
|
+
details.we <br />
|
|
164
|
+
appreciated your continued
|
|
165
|
+
support.Thank you for understanding"
|
|
166
|
+
</p>
|
|
167
|
+
</td>
|
|
168
|
+
</tr>
|
|
169
|
+
</table>
|
|
170
|
+
</td>
|
|
171
|
+
</tr>
|
|
172
|
+
<tr>
|
|
173
|
+
<td align="center" bgcolor="#dbe5ea" style="padding:0 10px 0 10px">
|
|
174
|
+
<table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%"
|
|
175
|
+
style="max-width: 680px;">
|
|
176
|
+
<tr bgcolor="#F9FAFB"
|
|
177
|
+
style="border-bottom:1px solid #f0ecea;height:40px;margin-top:10px;text-align:left">
|
|
178
|
+
<th class="invoicedescription" style="width:300px;padding-left:30px;">Description</th>
|
|
179
|
+
<th class="invoicedescription" style="width:120px;">Price</th>
|
|
180
|
+
<th class="invoicedescription" style="width:120px;">Stores</th>
|
|
181
|
+
<th class="invoicedescription" style="width:120px;">Total Amount</th>
|
|
182
|
+
</tr>
|
|
183
|
+
<tr style="border:none;">
|
|
184
|
+
<td colspan="4" align="left" bgcolor="#ffffff" style="padding-left: 30px;padding-right: 24px; font-size: 14px; line-height: 24px;">
|
|
185
|
+
<p class="" style="border: 0px solid #EAECF0;">
|
|
186
|
+
</p>
|
|
187
|
+
</td>
|
|
188
|
+
</tr>
|
|
189
|
+
{{#each data.products}}
|
|
190
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:10px;">
|
|
191
|
+
<td class="productstext" style="padding-left:30px;">{{productName}}</td>
|
|
192
|
+
<td class="productstext">{{../data.currencyType}} {{basePrice}}</td>
|
|
193
|
+
<td class="productstext">{{storeCount}}</td>
|
|
194
|
+
<td class="productstext">{{../data.currencyType}} {{price}}</td>
|
|
195
|
+
</tr>
|
|
196
|
+
{{/each}}
|
|
197
|
+
<tr>
|
|
198
|
+
<td colspan="4" align="left" bgcolor="#ffffff"
|
|
199
|
+
style="padding-left: 30px;padding-right: 24px; font-size: 14px; line-height: 24px;">
|
|
200
|
+
<p class="" style="border: 1px solid #EAECF0;">
|
|
201
|
+
</p>
|
|
202
|
+
</td>
|
|
203
|
+
</tr>
|
|
204
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
205
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">Sub Total</td>
|
|
206
|
+
<td></td>
|
|
207
|
+
<td></td>
|
|
208
|
+
<td class="invoicesub">{{data.currencyType}} {{data.amount}}</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
211
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">IGST</td>
|
|
212
|
+
<td></td>
|
|
213
|
+
<td></td>
|
|
214
|
+
<td class="invoicesub">{{data.IGST}}%</td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
217
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">CGST</td>
|
|
218
|
+
<td></td>
|
|
219
|
+
<td></td>
|
|
220
|
+
<td class="invoicesub">{{data.CGST}}%</td>
|
|
221
|
+
</tr>
|
|
222
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
223
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">SGST</td>
|
|
224
|
+
<td></td>
|
|
225
|
+
<td></td>
|
|
226
|
+
<td class="invoicesub">{{data.SGST}}%</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
229
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">Total</td>
|
|
230
|
+
<td></td>
|
|
231
|
+
<td></td>
|
|
232
|
+
<td class="invoicesub">{{data.currencyType}} {{data.total}}</td>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:0px;">
|
|
235
|
+
<td class="invoicesub" style="padding-left:30px; line-height: 24px;">Discount</td>
|
|
236
|
+
<td></td>
|
|
237
|
+
<td></td>
|
|
238
|
+
<td class="invoicesub">{{data.discount}}</td>
|
|
239
|
+
</tr>
|
|
240
|
+
<tr>
|
|
241
|
+
<td colspan="4" align="left" bgcolor="#ffffff"
|
|
242
|
+
style="padding-left: 30px;padding-right: 24px; font-size: 14px; line-height: 24px;">
|
|
243
|
+
<p class="" style="border: 1px solid #EAECF0;">
|
|
244
|
+
</p>
|
|
245
|
+
</td>
|
|
246
|
+
</tr>
|
|
247
|
+
<tr bgcolor="#ffffff" style="border:none;margin-top:10px;">
|
|
248
|
+
<td class="invoicesub" style="padding-left:30px; ">Final Value</td>
|
|
249
|
+
<td></td>
|
|
250
|
+
<td></td>
|
|
251
|
+
<td class="invoicesub">{{data.currencyType}} {{data.final}}</td>
|
|
252
|
+
</tr>
|
|
253
|
+
</table>
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td align="center" bgcolor="#dbe5ea" style="padding:0 10px 32px 10px;">
|
|
258
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 680px;">
|
|
259
|
+
<tr>
|
|
260
|
+
<td class="o_bg-white o_px-md o_py-xl o_xs-py-md"
|
|
261
|
+
style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-top:35px">
|
|
262
|
+
<div class="o_col-6s o_sans o_text-md o_text-light o_center"
|
|
263
|
+
style="margin-top: 0px;margin-bottom: 0px;font-size: 12px;color: #202B3C;font-style: normal;font-weight: 400;font-size: 12px;line-height: 150%;">
|
|
264
|
+
<p>
|
|
265
|
+
If you'd rather not receive this kind of email, Don’t want any more emails from
|
|
266
|
+
TangoEye? <a
|
|
267
|
+
style="color: var(--Primary-Base, #00A3FF); text-decoration-line: underline; letter-spacing: 0.2px;">Unsubscribe.</a>
|
|
268
|
+
</p>
|
|
269
|
+
</div>
|
|
270
|
+
</td>
|
|
271
|
+
</tr>
|
|
272
|
+
<tr>
|
|
273
|
+
<td class="o_bg-white o_px-md o_py-xl o_xs-py-md"
|
|
274
|
+
style="background-color: #ffffff;padding-left: 30px;padding-right: 24px;padding-bottom:15px">
|
|
275
|
+
<div class="o_col-6s o_sans o_text-md o_text-light o_center"
|
|
276
|
+
style="margin-top: 0px;margin-bottom: 0px;font-size: 12px;color: #202B3C;font-style: normal;font-weight: 400;font-size: 12px;line-height: 150%;">
|
|
277
|
+
<p>
|
|
278
|
+
© Tango Eye. All rights reserved.</p>
|
|
279
|
+
</div>
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
</table>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
|
|
286
|
+
</table>
|
|
287
|
+
|
|
288
|
+
</body>
|
|
289
|
+
|
|
290
|
+
</html>
|